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/backup-sudo | 1 + 1 file changed, 1 insertion(+) (limited to 'arch-system/backup-sudo') diff --git a/arch-system/backup-sudo b/arch-system/backup-sudo index b2694b6..38594da 100755 --- a/arch-system/backup-sudo +++ b/arch-system/backup-sudo @@ -12,6 +12,7 @@ validate_path() { case "$1" in snapshot) validate_path "$2" + touch /home btrfs subvolume snapshot -r -- /home "$2" ;; delete_snapshot) -- cgit v1.2.3-70-g09d2