diff --git a/scripts/backup b/scripts/backup index 780f511..8a272f1 100755 --- a/scripts/backup +++ b/scripts/backup @@ -21,4 +21,4 @@ ynh_abort_if_errors app=$YNH_APP_INSTANCE_NAME - +ynh_backup "/etc/yunohost/hooks.d/backup/17-data_home" diff --git a/scripts/restore b/scripts/restore index 629eddd..a7ee0e5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -65,5 +65,5 @@ echo "command=\"borg serve $extra --restrict-to-repository /home/$ssh_user/backu #================================================= touch $home/.nobackup mkdir -p /etc/yunohost/hooks.d/backup -cp -f ../conf/17-data_home /etc/yunohost/hooks.d/backup/17-data_home +ynh_restore