reverseproxy_ynh/scripts/backup

24 lines
750 B
Text
Raw Normal View History

2016-06-20 23:43:51 +02:00
#!/bin/bash
2018-05-26 10:27:01 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2016-06-20 23:43:51 +02:00
2023-01-08 14:33:31 +01:00
source ../settings/scripts/_common.sh
2018-05-26 10:27:01 +02:00
source /usr/share/yunohost/helpers
2021-01-23 15:21:17 +01:00
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
2016-06-20 23:43:51 +02:00
# Copy the conf files
2023-11-25 19:20:44 +01:00
ynh_backup --src_path="/etc/nginx/conf.d/${domain}.d/${app}.conf"
2021-01-23 15:21:17 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."