mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Don't backup big data items when BACKUP_CORE_ONLY is set
This commit is contained in:
parent
421994a3ef
commit
810eaec8c9
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ ynh_backup() {
|
|||
local DEST_PATH="${2:-}"
|
||||
local IS_BIG="${3:-0}"
|
||||
|
||||
# If backing up core only (used by ynh_backup_before_upgrade),
|
||||
# don't backup big data items
|
||||
if [ "$IS_BIG" == "1" ] && [ -n "$BACKUP_CORE_ONLY" ] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# ==============================================================================
|
||||
# Format correctly source and destination paths
|
||||
# ==============================================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue