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

28 lines
856 B
Text
Raw Normal View History

2014-11-04 09:47:50 +01:00
#!/bin/bash
2020-11-05 20:59:46 +01:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
ynh_backup --src_path="$install_dir"
2020-11-05 20:59:46 +01:00
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# END OF SCRIPT
#=================================================
2014-11-04 09:47:50 +01:00
2020-11-05 21:05:02 +01:00
ynh_print_info --message="Backup script completed for Laverna. (YunoHost will then actually copy those files to the archive)."