1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/keeweb_ynh.git synced 2024-09-03 19:26:33 +02:00
keeweb_ynh/scripts/backup

34 lines
1.1 KiB
Text
Raw Normal View History

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
#=================================================
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)."