mirror of
https://github.com/YunoHost/example_ynh.git
synced 2024-09-03 20:06:13 +02:00
[enh] Apply backup core only policy
This commit is contained in:
parent
0e702da9cb
commit
6d7c08c6bc
1 changed files with 10 additions and 0 deletions
|
@ -32,6 +32,16 @@ final_path=$(ynh_app_setting_get $app final_path)
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
db_name=$(ynh_app_setting_get $app db_name)
|
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
|
# STANDARD BACKUP STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue