dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 3b20862503d875db1ae5ccfaa873e7b5089502a4
parent ae017a51e9234089d05b7ca3f0a1d0e0df837255
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 16 Jun 2019 18:01:25 +0200

Only exclude ~/tmp from home backup

Diffstat:
M.local/bin/backup-b2 | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/.local/bin/backup-b2 b/.local/bin/backup-b2 @@ -57,9 +57,15 @@ duplicity_backup_b2() { b2_dir="$2" echo "Backing up $1..." - duplicity_with_opts \ - --full-if-older-than 30D --exclude ~/tmp \ - "$local_dir" b2://"$b2_account":"$b2_key"@"$b2_dir" + if [ "$local_dir" = "/home" ]; then + duplicity_with_opts \ + --full-if-older-than 30D --exclude ~/tmp \ + "$local_dir" b2://"$b2_account":"$b2_key"@"$b2_dir" + else + duplicity_with_opts \ + --full-if-older-than 30D \ + "$local_dir" b2://"$b2_account":"$b2_key"@"$b2_dir" + fi echo "Cleaning up old backups..." duplicity_with_opts \ @@ -93,7 +99,7 @@ list_status_b2() { backup_b2() { duplicity_backup_b2 /home "$(hostname)-new-home" duplicity_backup_b2 /etc "$(hostname)-new-etc" - duplicity_backup_b2 /usr "$(hostname)-new-usr" + # duplicity_backup_b2 /usr "$(hostname)-new-usr" } duplicity_list_backup_b2() {