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

39 lines
1.3 KiB
Text
Raw Normal View History

2018-09-16 14:47:00 +02:00
#!/bin/bash
#=================================================
# GENERIC START
2018-06-27 17:21:59 +02:00
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2020-04-26 00:47:07 +02:00
#Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
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
#=================================================
ynh_backup --src_path="$install_dir"
2018-06-27 17:21:59 +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)."