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/borgbackup | |
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/borgbackup')
-rwxr-xr-x | arch-system/borgbackup | 1 |
1 files changed, 1 insertions, 0 deletions
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 |