From f1b8f21704f173f9cb60595f21001c22b8be8efd Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Wed, 13 Jul 2022 23:48:54 +0200 Subject: [PATCH] Backups: Ignore unnamed docker volumes --- templates/backup.sh.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/backup.sh.j2 b/templates/backup.sh.j2 index e7c47e3..349f48f 100755 --- a/templates/backup.sh.j2 +++ b/templates/backup.sh.j2 @@ -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=$?