commit ae017a51e9234089d05b7ca3f0a1d0e0df837255
parent 50676ea65b375586da80a687c89f332ddf0637cc
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 16 Jun 2019 15:23:59 +0200
Fix status message during backup and skip ~/tmp
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.local/bin/backup-b2 b/.local/bin/backup-b2
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
-version=1.1.0
+version=1.1.1
b2_account="$(pass Online/backblaze.com-anders@adamsgaard.dk-account-id)"
b2_key="$(pass Online/backblaze.com-anders@adamsgaard.dk-master-application-key)"
@@ -56,9 +56,9 @@ duplicity_backup_b2() {
local_dir="$1"
b2_dir="$2"
- echo "Backing up home..."
+ echo "Backing up $1..."
duplicity_with_opts \
- --full-if-older-than 30D \
+ --full-if-older-than 30D --exclude ~/tmp \
"$local_dir" b2://"$b2_account":"$b2_key"@"$b2_dir"
echo "Cleaning up old backups..."