diff --git a/scripts/backup b/scripts/backup index c542202..fb368b5 100644 --- a/scripts/backup +++ b/scripts/backup @@ -35,13 +35,13 @@ backup_dir=$final_path/backup-$bkpdate # BACKUP THE APP MAIN DIR #================================================= -ynh_backup "$final_path" "${backup_dir}$final_path" +ynh_backup "$final_path" "app" #================================================= # 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 diff --git a/scripts/restore b/scripts/restore index f9fb92b..d86cf9e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -43,13 +43,13 @@ db_name=$(ynh_app_setting_get $app db_name) # RESTORE THE NGINX CONFIGURATION #================================================= -ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_restore_file "nginx" #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_restore_file "$final_path" +ynh_restore_file "app" #================================================= # RESTORE THE MONGODB