diff --git a/scripts/backup b/scripts/backup index 37fb45c..f55f3f3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,8 +32,11 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name) #================================================= # BACKUP APP MAIN DIR #================================================= -ynh_script_progression --message="Backing up the main app directory..." +# Clean cache files before backup (saved some disk space) +ynh_secure_remove --file=$final_path/var/cache/prod + +ynh_script_progression --message="Backing up the main app directory..." ynh_backup --src_path="$final_path" #================================================= @@ -66,4 +69,4 @@ ynh_backup "/etc/fail2ban/filter.d/$app.conf" #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last \ No newline at end of file +ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last