diff --git a/scripts/backup b/scripts/backup index 8b1beaf..0994511 100644 --- a/scripts/backup +++ b/scripts/backup @@ -33,16 +33,27 @@ db_name=$(ynh_app_setting_get $app db_name) #================================================= # STANDARD BACKUP STEPS #================================================= -# BACKUP OF THE MAIN DIR OF THE APP +# BACKUP THE APP MAIN DIR #================================================= ynh_backup "$final_path" -ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_backup "/etc/systemd/system/$app.service" #================================================= -# BACKUP OF MONGODB +# BACKUP THE NGINX CONFIGURATION +#================================================= + +ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" + +#================================================= +# BACKUP THE MONGODB DATABASE #================================================= mongodump --db "$db_name" -o "./dump" +#================================================= +# SPECIFIC BACKUP +#================================================= +# BACKUP SYSTEMD +#================================================= + +ynh_backup "/etc/systemd/system/$app.service"