1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Merge pull request #69 from YunoHost-Apps/exclure-cache-from-backup

Exclude cache file from backup
This commit is contained in:
lapineige 2019-05-20 14:19:28 +02:00 committed by GitHub
commit cf5defe3f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last