1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Fixes backup and restore

This commit is contained in:
Selamanse 2017-07-21 13:35:21 +02:00
parent 13884597be
commit 55cf3a1387
2 changed files with 4 additions and 4 deletions

View file

@ -35,13 +35,13 @@ backup_dir=$final_path/backup-$bkpdate
# BACKUP THE APP MAIN DIR # BACKUP THE APP MAIN DIR
#================================================= #=================================================
ynh_backup "$final_path" "${backup_dir}$final_path" ynh_backup "$final_path" "app"
#================================================= #=================================================
# BACKUP THE NGINX CONFIGURATION # BACKUP THE NGINX CONFIGURATION
#================================================= #=================================================
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "${backup_dir}/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "nginx"
#================================================= #=================================================
# BACKUP THE MONGODB DATABASE # BACKUP THE MONGODB DATABASE

View file

@ -43,13 +43,13 @@ db_name=$(ynh_app_setting_get $app db_name)
# RESTORE THE NGINX CONFIGURATION # RESTORE THE NGINX CONFIGURATION
#================================================= #=================================================
ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file "nginx"
#================================================= #=================================================
# RESTORE THE APP MAIN DIR # RESTORE THE APP MAIN DIR
#================================================= #=================================================
ynh_restore_file "$final_path" ynh_restore_file "app"
#================================================= #=================================================
# RESTORE THE MONGODB # RESTORE THE MONGODB