1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00
This commit is contained in:
ewilly 2019-11-18 15:48:14 +01:00
parent 47384bab9f
commit 32a3aa598d
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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"