2017-07-23 17:46:25 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-07-18 11:46:45 +02:00
|
|
|
source ../settings/scripts/_common.sh
|
2017-07-23 17:46:25 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2024-08-30 22:46:17 +02:00
|
|
|
ynh_print_info "Declaring files to be backed up..."
|
2020-07-18 11:46:45 +02:00
|
|
|
|
2017-07-23 17:46:25 +02:00
|
|
|
#=================================================
|
2020-07-18 11:46:45 +02:00
|
|
|
# BACKUP THE APP MAIN DIR
|
2017-07-23 17:46:25 +02:00
|
|
|
#=================================================
|
|
|
|
|
2024-08-30 22:46:17 +02:00
|
|
|
ynh_backup "$install_dir"
|
2017-07-23 17:46:25 +02:00
|
|
|
|
|
|
|
#=================================================
|
2024-05-24 08:26:56 +02:00
|
|
|
# SYSTEM CONFIGURATION
|
2017-07-23 17:46:25 +02:00
|
|
|
#=================================================
|
|
|
|
|
2024-08-30 22:46:17 +02:00
|
|
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
2017-07-23 17:46:25 +02:00
|
|
|
|
2024-08-30 22:46:17 +02:00
|
|
|
ynh_backup "/etc/systemd/system/$app.service"
|
2017-07-30 21:33:54 +02:00
|
|
|
|
2017-07-23 17:46:25 +02:00
|
|
|
#=================================================
|
2020-07-18 11:46:45 +02:00
|
|
|
# END OF SCRIPT
|
2017-07-23 17:46:25 +02:00
|
|
|
#=================================================
|
|
|
|
|
2024-08-30 22:46:17 +02:00
|
|
|
ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|