2018-09-16 14:47:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
2018-06-27 17:21:59 +02:00
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
2017-07-04 16:18:43 +02:00
|
|
|
|
2018-09-16 14:47:00 +02:00
|
|
|
source ../settings/scripts/_common.sh
|
2018-06-27 17:21:59 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2020-07-15 17:25:51 +02:00
|
|
|
#=================================================
|
|
|
|
# DECLARE DATA AND CONF FILES TO BACKUP
|
|
|
|
#=================================================
|
|
|
|
ynh_print_info --message="Declaring files to be backed up..."
|
|
|
|
|
2018-06-27 17:21:59 +02:00
|
|
|
#=================================================
|
|
|
|
# STANDARD BACKUP STEPS
|
|
|
|
#=================================================
|
|
|
|
# BACKUP THE APP MAIN DIR
|
|
|
|
#=================================================
|
|
|
|
|
2023-04-21 16:09:54 +02:00
|
|
|
ynh_backup --src_path="$install_dir"
|
2018-06-27 17:21:59 +02:00
|
|
|
|
|
|
|
#=================================================
|
2024-06-02 11:54:49 +02:00
|
|
|
# SYSTEM CONFIGURATION
|
2018-06-27 17:21:59 +02:00
|
|
|
#=================================================
|
|
|
|
|
2020-04-26 00:47:07 +02:00
|
|
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
2018-06-27 17:21:59 +02:00
|
|
|
|
2020-10-12 09:42:16 +02:00
|
|
|
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
2020-04-26 00:47:07 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-02-06 11:58:17 +01:00
|
|
|
ynh_print_info --message="Backup script completed for Adminer. (YunoHost will then actually copy those files to the archive)."
|