From ca396c9781a8c0cf182a221a4633c5253a55c271 Mon Sep 17 00:00:00 2001 From: lapineige Date: Fri, 10 May 2019 23:43:35 +0200 Subject: [PATCH 1/3] 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 a607aa6..76ef669 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 (saved some disk space) +ynh_secure_remove --file=${final_path}/var/cache/prod/ CHECK_SIZE "$final_path" ynh_backup "$final_path" From b60404d4529f8994c346347576ee18576fea41d4 Mon Sep 17 00:00:00 2001 From: lapineige Date: Mon, 13 May 2019 09:51:14 +0200 Subject: [PATCH 2/3] Fix warning when removing the cache https://github.com/YunoHost-Apps/wallabag2_ynh/pull/69#discussion_r283221142 --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 76ef669..1cd5c07 100644 --- a/scripts/backup +++ b/scripts/backup @@ -31,7 +31,7 @@ db_name=$(ynh_app_setting_get $app db_name) # BACKUP APP MAIN DIR #================================================= # Clean cache files before backup (saved some disk space) -ynh_secure_remove --file=${final_path}/var/cache/prod/ +ynh_secure_remove --file=${final_path}/var/cache/prod CHECK_SIZE "$final_path" ynh_backup "$final_path" From b945d3779d720976310ddcfa0b62b43cc2f96a9a Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 16 May 2019 22:20:54 +0200 Subject: [PATCH 3/3] Cosmetic fixes --- scripts/backup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/backup b/scripts/backup index 48e6d03..f55f3f3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,8 +32,9 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name) #================================================= # BACKUP APP MAIN DIR #================================================= + # Clean cache files before backup (saved some disk space) -ynh_secure_remove --file=${final_path}/var/cache/prod +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" @@ -68,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