1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wemawema_ynh.git synced 2024-10-01 13:34:56 +02:00
wemawema_ynh/scripts/backup

36 lines
1.1 KiB
Text
Raw Normal View History

2017-10-28 19:28:51 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source ../settings/scripts/_common.sh
2017-10-28 19:28:51 +02:00
source /usr/share/yunohost/helpers
2020-11-17 09:08:16 +01:00
#=================================================
# DECLARE DATA AND CONF FILES TO BACKUP
#=================================================
ynh_print_info --message="Declaring files to be backed up..."
2017-10-28 19:28:51 +02:00
#=================================================
# STANDARD BACKUP STEPS
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
2023-12-09 21:24:56 +01:00
ynh_backup --src_path="$install_dir"
2017-10-28 19:28:51 +02:00
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
2023-12-09 21:24:56 +01:00
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
2020-11-17 09:08:16 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."