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

set datadir

This commit is contained in:
Éric Gaspar 2022-07-16 22:57:58 +02:00
parent 2f4103d736
commit 921b83c56d
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 0 deletions

View file

@ -85,6 +85,8 @@ ynh_backup --src_path="/etc/cron.d/$app"
#=================================================
ynh_print_info --message="Backing up data directory..."
set_datadir
ynh_backup --src_path="$datadir" --is_big
#=================================================

View file

@ -120,6 +120,8 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
ynh_script_progression --message="Restoring data directory..." --weight=2
set_datadir
# Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup.
ynh_restore_file --origin_path="$datadir" --not_mandatory