From 921b83c56de79176a5fdc6a8d3fe8a399503f0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 16 Jul 2022 22:57:58 +0200 Subject: [PATCH] set datadir --- scripts/backup | 2 ++ scripts/restore | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/backup b/scripts/backup index 4127420..ebf7761 100755 --- a/scripts/backup +++ b/scripts/backup @@ -85,6 +85,8 @@ ynh_backup --src_path="/etc/cron.d/$app" #================================================= ynh_print_info --message="Backing up data directory..." +set_datadir + ynh_backup --src_path="$datadir" --is_big #================================================= diff --git a/scripts/restore b/scripts/restore index 425e580..1775ff2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -120,6 +120,8 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_script_progression --message="Restoring data directory..." --weight=2 +set_datadir + # Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup. ynh_restore_file --origin_path="$datadir" --not_mandatory