Backups: Ignore unnamed docker volumes
This commit is contained in:
parent
6bd4581ac4
commit
f1b8f21704
@ -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=$?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user