fix backup

adding «--src_path=» to routes
This commit is contained in:
ghose 2024-11-10 08:18:36 +01:00 committed by GitHub
parent 32bfeb8b58
commit 263f1e7c0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ ynh_print_info "Declaring files to be backed up..."
# BACKUP THE APP MAIN DIR
#=================================================
ynh_backup "$install_dir"
ynh_backup --src_path="$install_dir"
#=================================================
# SYSTEM CONFIGURATION
@ -18,13 +18,13 @@ ynh_backup "$install_dir"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup "/etc/logrotate.d/$app"
ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================
# BACKUP VARIOUS FILES
#=================================================
ynh_backup "/var/log/$app/" # TODO: add an option to specify log file
ynh_backup --src_path="/var/log/$app/" # TODO: add an option to specify log file
#=================================================
# END OF SCRIPT