diff options
author | Tharre <tharre3@gmail.com> | 2019-02-09 16:28:37 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2019-02-09 16:52:39 +0100 |
commit | 63b0cd2c634e5099e05a6d9843f2cc3c3b6513b7 (patch) | |
tree | 7c821b53215cf02047f021597d736bdab713219a /arch-system/backup-sudo | |
parent | 7f111d225ac0c6aa9d2ad912a7e0f27375a899dc (diff) | |
download | pkgbuilds-63b0cd2c634e5099e05a6d9843f2cc3c3b6513b7.tar.gz pkgbuilds-63b0cd2c634e5099e05a6d9843f2cc3c3b6513b7.tar.xz pkgbuilds-63b0cd2c634e5099e05a6d9843f2cc3c3b6513b7.zip |
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.
Diffstat (limited to 'arch-system/backup-sudo')
-rwxr-xr-x | arch-system/backup-sudo | 1 |
1 files changed, 1 insertions, 0 deletions
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) |