Permalink
Browse files

Refactor excludes (was broken)

  • Loading branch information...
1 parent a083300 commit fd22007250f4254beecb4416e2dc46925e510384 @glasserc committed Apr 30, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 bin/backups/shared
  2. +1 −1 bin/backups/to_cookey
  3. +1 −1 bin/backups/to_tularosa
View
2 bin/backups/shared 100644 → 100755
@@ -1,2 +1,4 @@
#! /bin/bash
# Shared definitions for writing backup programs
+
+EXCLUDES="$HOME/etc/bin/backups/excludes"
View
2 bin/backups/to_cookey
@@ -2,7 +2,7 @@
. ~/etc/bin/backups/shared
KEY_PATH=/media/Personal/ethan
-RSYNC="rsync -avz --delete --exclude-from=$HOME/bin/backups/excludes"
+RSYNC="rsync -avz --delete --exclude-from=$EXCLUDES"
TARGETS="~/Documents ~/.config/secrets ~/.config/etc-extended ~/writing"
View
2 bin/backups/to_tularosa
@@ -8,4 +8,4 @@ eval `ssh-agent`
ssh-add ~/.ssh/id_dsa_tularosa >/dev/null 2>&1
time rsync -az ~/ backups@tularosa.local:/c/backups/ethan/homedir/ \
- --exclude-from=$HOME/etc/bin/backups/excludes
+ --exclude-from=$EXCLUDES

0 comments on commit fd22007

Please sign in to comment.