Backups: Ignore unnamed docker volumes

This commit is contained in:
Tobias Manske 2022-07-13 23:48:54 +02:00
parent 6bd4581ac4
commit f1b8f21704
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A
1 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,8 @@ borg create \
--show-rc \
--compression none \
--exclude-caches \
--one-file-system \
--one-file-system \
--exclude "re:^/var/lib/docker/volumes/[a-z0-9]{64}/" \
::'{hostname}-{now}' \
/var/lib/docker/volumes
@ -47,7 +48,7 @@ borg prune \
--show-rc \
--keep-daily 7 \
--keep-weekly 4 \
--keep-monthly 6 \
--keep-monthly 6
prune_exit=$?