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:
commit
cf5defe3f5
1 changed files with 5 additions and 2 deletions
|
@ -32,8 +32,11 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP APP MAIN DIR
|
# 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"
|
ynh_backup --src_path="$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue