mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Also backup logs
This commit is contained in:
parent
31256eb765
commit
dfd03a987a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue