From 63b0cd2c634e5099e05a6d9843f2cc3c3b6513b7 Mon Sep 17 00:00:00 2001 From: Tharre Date: Sat, 9 Feb 2019 16:28:37 +0100 Subject: arch-system: borgbackup: use snapshot timestamps Previously, a archive would get the timestamp of the time it was uploaded, instead of the time when the snapshot was created. This is problematic, since archives are pruned by this timestamp, meaning if multiple archives are uploaded together most of them would be pruned immediately after. --- arch-system/borgbackup | 1 + 1 file changed, 1 insertion(+) (limited to 'arch-system/borgbackup') diff --git a/arch-system/borgbackup b/arch-system/borgbackup index a022b3d..9368452 100755 --- a/arch-system/borgbackup +++ b/arch-system/borgbackup @@ -49,6 +49,7 @@ backup() { cd /backup borg create --stats $borg_progress \ --exclude-from ~/.borg_exclude \ + --timestamp . \ --show-rc \ ::"$(basename "$1")" . && rc=$? || rc=$? if [ $rc -eq 1 ]; then -- cgit v1.2.3-70-g09d2