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:
parent
2f4103d736
commit
921b83c56d
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue