From 263f1e7c0cbba8f7eae4c0d7644721a39bf274b1 Mon Sep 17 00:00:00 2001 From: ghose <704948+xmgz@users.noreply.github.com> Date: Sun, 10 Nov 2024 08:18:36 +0100 Subject: [PATCH] fix backup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit adding «--src_path=» to routes --- scripts/backup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/backup b/scripts/backup index d1b8efd..6f5cf3a 100644 --- a/scripts/backup +++ b/scripts/backup @@ -10,7 +10,7 @@ ynh_print_info "Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -ynh_backup "$install_dir" +ynh_backup --src_path="$install_dir" #================================================= # SYSTEM CONFIGURATION @@ -18,16 +18,16 @@ ynh_backup "$install_dir" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_backup "/etc/logrotate.d/$app" +ynh_backup --src_path="/etc/logrotate.d/$app" #================================================= # BACKUP VARIOUS FILES #================================================= -ynh_backup "/var/log/$app/" # TODO: add an option to specify log file +ynh_backup --src_path="/var/log/$app/" # TODO: add an option to specify log file #================================================= # END OF SCRIPT #================================================= -ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." \ No newline at end of file +ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."