mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
backup restore kepubify
This commit is contained in:
parent
e6d7ae84e3
commit
8a95c527ff
3 changed files with 14 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Browsing, reading and downloading eBooks using a Calibre database",
|
"en": "Browsing, reading and downloading eBooks using a Calibre database",
|
||||||
"fr": "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre"
|
"fr": "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre"
|
||||||
},
|
},
|
||||||
"version": "0.96.19~ynh3",
|
"version": "0.96.19~ynh4",
|
||||||
"url": "https://github.com/janeczku/calibre-web",
|
"url": "https://github.com/janeczku/calibre-web",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"version": "0.6.19",
|
"version": "0.6.19",
|
||||||
|
|
|
@ -45,6 +45,12 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
#This will backup the app.db file at the same time
|
#This will backup the app.db file at the same time
|
||||||
ynh_backup --src_path="$final_path"
|
ynh_backup --src_path="$final_path"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# BACKUP THE KEPUBIFY BINARY
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_backup --src_path="/opt/kepubify"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -69,6 +69,13 @@ ynh_system_user_create --username=$app
|
||||||
ynh_script_progression --message="Restoring the app main directory..." --weight=1
|
ynh_script_progression --message="Restoring the app main directory..." --weight=1
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE THE KEPUBIFY BINARIES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring Kepubify..." --weight=1
|
||||||
|
ynh_restore_file --origin_path="/opt/kepubify"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE USER RIGHTS
|
# RESTORE USER RIGHTS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue