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

28 lines
858 B
Text
Raw Permalink Normal View History

2020-11-05 22:30:55 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
2023-05-19 11:46:54 +02:00
ynh_backup --src_path="$install_dir"
2020-11-05 22:30:55 +01:00
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# END OF SCRIPT
#=================================================
2020-11-05 22:42:06 +01:00
ynh_print_info --message="Backup script completed for Encryptic. (YunoHost will then actually copy those files to the archive)."