From 90fd4c284cd13ae4c3e0201aa598e21f0c50a167 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 2 Mar 2021 15:44:51 +0100 Subject: [PATCH] fix backup/restore --- scripts/backup | 2 ++ scripts/restore | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/backup b/scripts/backup index 9ef2d30..b6ff79f 100755 --- a/scripts/backup +++ b/scripts/backup @@ -46,6 +46,8 @@ ynh_backup --src_path="/etc/systemd/system/$app.socket" # BACKUP VARIOUS FILES #================================================= +ynh_backup --src_path="/var/log/$app/" + ynh_backup --src_path="/usr/local/lib/$app/" ynh_backup --src_path="/usr/local/bin/lxc" diff --git a/scripts/restore b/scripts/restore index d4461f8..8ec11b7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -75,6 +75,8 @@ yunohost service add $app --log="/var/log/$app/$app.log" --needs_exposed_ports=6 # RESTORE VARIOUS FILES #================================================= +ynh_restore_file --origin_path="/var/log/$app/" + ynh_restore_file --origin_path="/usr/local/lib/$app/" ynh_restore_file --origin_path="/usr/local/bin/lxc"