mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
21 lines
444 B
Bash
Executable file
21 lines
444 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# Source app helpers
|
|
. /usr/share/yunohost/helpers
|
|
|
|
# retrieve useful param
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
path=/var/www/$app
|
|
dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
|
|
domain=$(ynh_app_setting_get "$app" domain)
|
|
|
|
# Backup app files
|
|
ynh_backup "$path" "www"
|
|
# Backup conf files
|
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "conf"
|
|
ynh_backup "/etc/cron.d/$app" "cron"
|
|
|
|
# Backup mysql
|
|
ynh_mysql_dump_db $app > $app.dmp
|