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

View File

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