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:
parent
13884597be
commit
55cf3a1387
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue