Also backup logs

This commit is contained in:
Josué Tille 2024-04-21 12:26:32 +02:00
parent 31256eb765
commit dfd03a987a
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -33,6 +33,9 @@ ynh_backup --src_path /etc/systemd/system/seahub.service
ynh_backup --src_path /etc/fail2ban/jail.d/"$app".conf ynh_backup --src_path /etc/fail2ban/jail.d/"$app".conf
ynh_backup --src_path /etc/fail2ban/filter.d/"$app".conf ynh_backup --src_path /etc/fail2ban/filter.d/"$app".conf
# Backup logs
ynh_backup --src_path="/var/log/$app"
# Backup mysql # Backup mysql
ynh_print_info --message="Backing up database" ynh_print_info --message="Backing up database"
ynh_mysql_dump_db --database "$db_name" > "${YNH_CWD}"/seafiledb.dmp ynh_mysql_dump_db --database "$db_name" > "${YNH_CWD}"/seafiledb.dmp