From a02a598bb5e016367a28a7750f58c9e3061c5a7c Mon Sep 17 00:00:00 2001 From: Jerome Charaoui <jerome@riseup.net> Date: Sun, 14 Jan 2018 18:31:42 -0500 Subject: [PATCH] [borg] change archive name to match borg default Archive names must be unique, so if the backup runs more than once per day with the previous default, it will throw and error because of the duplicate archive name. This is also consistent with the addition of the keephourly prune option. --- handlers/borg.helper.in | 2 +- handlers/borg.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/borg.helper.in b/handlers/borg.helper.in index 0e9f56b..5c489d5 100644 --- a/handlers/borg.helper.in +++ b/handlers/borg.helper.in @@ -372,7 +372,7 @@ borg_wizard() { borg_directory=/backup/`hostname` borg_user=root borg_host=localhost - borg_archive='{now:%Y-%m-%d}' + borg_archive='{now:%Y-%m-%dT%H:%M:%S}' borg_compression=lz4 borg_encryption=none borg_passphrase= diff --git a/handlers/borg.in b/handlers/borg.in index f657d4b..f292298 100644 --- a/handlers/borg.in +++ b/handlers/borg.in @@ -35,7 +35,7 @@ getconf host getconf directory # strip trailing / directory=${directory%/} -getconf archive {now:%Y-%m-%d} +getconf archive {now:%Y-%m-%dT%H:%M:%S} getconf compression lz4 getconf encryption none getconf passphrase -- GitLab