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:
parent
7accc9a6e6
commit
05d10bb0ad
1 changed files with 8 additions and 2 deletions
|
@ -22,8 +22,14 @@ DESTDIR="/var/www/$app"
|
|||
ynh_backup "$DESTDIR" "www"
|
||||
|
||||
# Copy the data directory
|
||||
DATADIR="/home/yunohost.app/${app}/data"
|
||||
ynh_backup "$DATADIR" "data" 1
|
||||
backup_core_only=$(ynh_app_setting_get "$app" backup_core_only)
|
||||
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
|
||||
mkdir ./conf
|
||||
|
|
Loading…
Add table
Reference in a new issue