From 43282f6e11302af65a175079bf16fe01411cdfe7 Mon Sep 17 00:00:00 2001 From: Ben Hoskins Date: Fri, 13 Dec 2024 14:44:54 +0000 Subject: [PATCH] Update README.md for achieve name gotcha solves https://github.com/borgmatic-collective/docker-borgmatic/issues/376 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6365b02..de25344 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,9 @@ borgmatic --stats -v 1 --files Both these commands will use the `borgmatic.d/config.yaml` file you provided, along with the `BORG_PASSPHRASE` and other environment variables in your docker configuration. +> **Note/Gotcha for archive names:** +> By default borgmatic uses `{hostname}` for naming (and then pruning, compacting archives). However the docker containers hostname changes every time it's rebuilt. To ensure consistent naming across archives and a properly working prune/compact you should specifically set the archive name in the config.yaml e.g. `archive_name_format: 'my-pc-backup-{now:%Y-%m-%d-%H%M%S}`. + ## Volumes ## The following volumes are available for mounting: