mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
exclude the session and certs folder from restore
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
3a67636092
commit
17e1c0250f
1 changed files with 5 additions and 1 deletions
|
|
@ -171,7 +171,11 @@ if [ "$BORG_MODE" = restore ]; then
|
||||||
echo "Could not mount the backup!"
|
echo "Could not mount the backup!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! rsync --stats --archive --human-readable -vv --delete --exclude "nextcloud_aio_mastercontainer/data/backup_archives.list" /tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes; then
|
if ! rsync --stats --archive --human-readable -vv --delete \
|
||||||
|
--exclude "nextcloud_aio_mastercontainer/data/backup_archives.list" \
|
||||||
|
--exclude "nextcloud_aio_mastercontainer/data/session/"** \
|
||||||
|
--exclude "nextcloud_aio_mastercontainer/data/certs/"** \
|
||||||
|
/tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes; then
|
||||||
echo "Something failed while restoring the boot partition."
|
echo "Something failed while restoring the boot partition."
|
||||||
umount /tmp/borg
|
umount /tmp/borg
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue