1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redirect_ynh.git synced 2024-09-03 20:16:10 +02:00
redirect_ynh/scripts/backup

23 lines
712 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
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
2024-01-02 23:05:32 +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)."