[enh] Apply backup core only policy

This commit is contained in:
ljf (zamentur) 2019-04-15 15:22:30 +02:00 committed by GitHub
parent 0e702da9cb
commit 6d7c08c6bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,16 @@ final_path=$(ynh_app_setting_get $app final_path)
domain=$(ynh_app_setting_get $app domain)
db_name=$(ynh_app_setting_get $app db_name)
#=================================================
# APPLY BACKUP CORE ONLY POLICY
#=================================================
# Apply policy only if we are not in upgrade mode
BACKUP_CORE_ONLY=${BACKUP_CORE_ONLY:-auto}
if [ "$BACKUP_CORE_ONLY" == "auto" ] ; then
BACKUP_CORE_ONLY=$(ynh_app_setting_get $app backup_core_only)
BACKUP_CORE_ONLY=${BACKUP_CORE_ONLY:-0}
fi
#=================================================
# STANDARD BACKUP STEPS
#=================================================