From a73288a1d6ba6f0127d971e9b2288b02eaf37d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 17 Jan 2024 16:31:08 +0100 Subject: [PATCH] Fix backup-restore: add log directory --- scripts/backup | 1 + scripts/restore | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/backup b/scripts/backup index d4006e2..a68696e 100755 --- a/scripts/backup +++ b/scripts/backup @@ -40,6 +40,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= ynh_backup --src_path="/etc/logrotate.d/$app" +ynh_backup --src_path="/var/log/$app/" #================================================= # BACKUP SYSTEMD diff --git a/scripts/restore b/scripts/restore index 523eca5..74d06be 100755 --- a/scripts/restore +++ b/scripts/restore @@ -48,6 +48,8 @@ yunohost service add "$app" --description="$app whiteboard" --log="/var/log/$app ynh_restore_file --origin_path="/etc/logrotate.d/$app" +ynh_restore_file --origin_path="/var/log/$app/" + #================================================= # RELOAD NGINX AND THE APP SERVICE #=================================================