From 68822866b2147ae41e6051529fa86a1fdfafef00 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Mon, 25 Sep 2017 17:09:44 +0200 Subject: [PATCH] Remove destition from backup, the helper already does it --- scripts/backup | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/backup b/scripts/backup index 35c5301..8336b50 100755 --- a/scripts/backup +++ b/scripts/backup @@ -38,20 +38,20 @@ db_pwd=$(ynh_app_setting_get $app pgsqlpwd) # BACKUP THE APP MAIN DIR #================================================= -ynh_backup "$final_path" "${backup_dir}$final_path" +ynh_backup "$final_path" #================================================= # 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" #================================================= # BACKUP THE PostgreSQL DATABASE #================================================= ynh_psql_dump_db "$db_name" > db.sql -ynh_backup "db.sql" "${backup_dir}/db.sql" +ynh_backup "db.sql" #================================================= # SPECIFIC BACKUP @@ -59,16 +59,16 @@ ynh_backup "db.sql" "${backup_dir}/db.sql" # BACKUP LOGROTATE #================================================= -ynh_backup "/etc/logrotate.d/$app" "${backup_dir}/etc/logrotate.d/$app" +ynh_backup "/etc/logrotate.d/$app" #================================================= # BACKUP THE CRON FILE #================================================= -ynh_backup "/etc/cron.d/$app" "${backup_dir}/etc/cron.d/$app" +ynh_backup "/etc/cron.d/$app" #================================================= # BACKUP THE SERVICE #================================================= -ynh_backup "/etc/systemd/system/$app.service" "${backup_dir}/etc/systemd/system/$app.service" +ynh_backup "/etc/systemd/system/$app.service"