From 155a6a9c7ba4d46933ea4079ffec04df992a9327 Mon Sep 17 00:00:00 2001 From: lapineige Date: Fri, 10 May 2019 14:36:16 +0200 Subject: [PATCH] Exclude cache file from backup It deletes them - it's simpler that not using the helper to backup the files. --- scripts/backup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/backup b/scripts/backup index 0d42f42..8505d07 100644 --- a/scripts/backup +++ b/scripts/backup @@ -30,6 +30,8 @@ db_name=$(ynh_app_setting_get $app db_name) #================================================= # BACKUP APP MAIN DIR #================================================= +# Clean cache files before backup (to save some storage space) +ynh_secure_remove --file=${final_path}/var/cache/prod/ CHECK_SIZE "$final_path" ynh_backup "$final_path"