1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

backup_core_only backup

This commit is contained in:
Maniack Crudelis 2017-01-08 21:38:35 +01:00 committed by GitHub
parent 7accc9a6e6
commit 05d10bb0ad

View file

@ -22,8 +22,14 @@ DESTDIR="/var/www/$app"
ynh_backup "$DESTDIR" "www" ynh_backup "$DESTDIR" "www"
# Copy the data directory # Copy the data directory
DATADIR="/home/yunohost.app/${app}/data" backup_core_only=$(ynh_app_setting_get "$app" backup_core_only)
ynh_backup "$DATADIR" "data" 1 if [ -z $backup_core_only ] # Si backup_core_only a une valeur dans le fichier settings.yml, ne sauvegarde pas le dossier data
then
DATADIR="/home/yunohost.app/${app}/data"
ynh_backup "$DATADIR" "data" 1
else
echo "Data dir will not saved, because backup_core_only is set." >&2
fi
# Copy the conf files # Copy the conf files
mkdir ./conf mkdir ./conf