mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Update
This commit is contained in:
parent
cface75870
commit
17f9b951dd
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# to test the functionnality :
|
# to test the functionnality :
|
||||||
# yunohost backup create -n "bozon-test" --ignore-system --apps bozon
|
# yunohost backup create -n "bozon-test" --apps bozon
|
||||||
# yunohost backup delete bozon-test
|
# yunohost backup delete bozon-test
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
|
@ -26,7 +26,7 @@ data_path="/home/yunohost.app/$app"
|
||||||
if [ $(yunohost app list -i -f "$app" | wc -l) -gt 1 ]; then
|
if [ $(yunohost app list -i -f "$app" | wc -l) -gt 1 ]; then
|
||||||
ynh_app_setting_set "$app" backup_core_only 0
|
ynh_app_setting_set "$app" backup_core_only 0
|
||||||
app_bck=${app//_/-}
|
app_bck=${app//_/-}
|
||||||
yunohost backup create --ignore-system --apps "$app" --name "${app_bck}_$(date '+%Y%m%d-%H%M%S')"
|
yunohost backup create --apps "$app" --name "${app_bck}_$(date '+%Y%m%d-%H%M%S')"
|
||||||
echo "BoZon fully backuped." >&2
|
echo "BoZon fully backuped." >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# to test the functionnality :
|
# to test the functionnality :
|
||||||
# yunohost backup create -n "bozon-test" --ignore-system --apps bozon
|
# yunohost backup create -n "bozon-test" --apps bozon
|
||||||
# yunohost app remove bozon
|
# yunohost app remove bozon
|
||||||
# yunohost backup restore "bozon-test"
|
# yunohost backup restore "bozon-test"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue