diff --git a/scripts/backup b/scripts/backup index 2f97bac..b5eae4f 100755 --- a/scripts/backup +++ b/scripts/backup @@ -76,6 +76,12 @@ ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" ynh_backup --src_path="/etc/logrotate.d/$app" +#================================================= +# BACKUP LOGS +#================================================= + +ynh_backup --src_path="/var/log/$app/$app.log" + #================================================= # BACKUP SYSTEMD #================================================= diff --git a/scripts/restore b/scripts/restore index a1db7a2..caa3d6b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -118,6 +118,13 @@ ynh_script_progression --message="Restoring the logrotate configuration..." --ti ynh_restore_file --origin_path="/etc/logrotate.d/$app" +#================================================= +# RESTORE THE LOGS +#================================================= +ynh_script_progression --message="Restoring the logs..." --time --weight=1 + +ynh_restore_file --origin_path="/var/log/$app/$app.log" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================