From d3fc775e8c6b626a914f0c6c23a9d422a727533f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 12 Nov 2020 11:30:46 -0300 Subject: backup.sh: Add backup pruning --- scripts/ad-hoc/backup.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/ad-hoc/backup.sh b/scripts/ad-hoc/backup.sh index 1a6dc8e8..a2aabfc2 100755 --- a/scripts/ad-hoc/backup.sh +++ b/scripts/ad-hoc/backup.sh @@ -29,6 +29,8 @@ borg create \ ~/.elfeed/ # add folders to be backed up here +borg prune --keep-last 10 --verbose "$R:desktop-borg" + cd ~/dev/libre/others/borg/ git add . git commit -m 'JOB: automated update of borg config files after backup.sh' -- cgit v1.3