2016-03-01 10:47:41 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source ../settings/scripts/_common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
2021-02-08 09:32:10 +01:00
|
|
|
# DECLARE DATA AND CONF FILES TO BACKUP
|
|
|
|
#=================================================
|
|
|
|
ynh_print_info --message="Declaring files to be backed up..."
|
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
#=================================================
|
|
|
|
# BACKUP OF THE MAIN DIR OF THE APP
|
|
|
|
#=================================================
|
|
|
|
|
2023-11-02 19:00:22 +01:00
|
|
|
ynh_backup --src_path="$install_dir"
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
#=================================================
|
|
|
|
# BACKUP OF THE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2016-12-06 03:09:15 +01:00
|
|
|
|
2021-02-08 09:32:10 +01:00
|
|
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|