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,16 +18,16 @@ 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
#=================================================
ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."