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=$?