From a72ab627ef3c6ec1ede425f94278ae91179bed3c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Feb 2019 22:01:54 +0100 Subject: [PATCH] Apply example_ynh on backup --- scripts/backup | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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"