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

29 lines
842 B
Text
Raw Permalink Normal View History

2018-09-16 14:47:00 +02:00
#!/bin/bash
source ../settings/scripts/_common.sh
2018-06-27 17:21:59 +02:00
source /usr/share/yunohost/helpers
2024-08-29 10:05:35 +02:00
ynh_print_info "Declaring files to be backed up..."
2020-07-15 17:25:51 +02:00
2018-06-27 17:21:59 +02:00
#=================================================
# STANDARD BACKUP STEPS
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
2024-08-29 10:05:35 +02:00
ynh_backup "$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
#=================================================
2024-08-29 10:05:35 +02:00
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
2018-06-27 17:21:59 +02:00
2024-08-29 10:05:35 +02:00
ynh_backup "/etc/php/$php_version/fpm/pool.d/$app.conf"
2020-04-26 00:47:07 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2024-08-29 10:05:35 +02:00
ynh_print_info "Backup script completed for Adminer. (YunoHost will then actually copy those files to the archive)."