From 2903a481e628e7989d62f97257753f1b2c099205 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 23 Aug 2017 17:45:01 -0700 Subject: [PATCH] Correct default backup commands file --- bin/backup-commands.default.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/backup-commands.default.sh b/bin/backup-commands.default.sh index a33ab65..dcbd2e4 100755 --- a/bin/backup-commands.default.sh +++ b/bin/backup-commands.default.sh @@ -5,11 +5,13 @@ # directory which commonly includes data you may care about. If there are other things you want to save, be sure to # add them in. -rsync -az --delete /Users/andrew/ ./Users/andrew \ +DIR="Users/$USER" + +mkdir -p $DIR +rsync -avz --delete "/$DIR" "$DIR" \ --exclude .DS_Store \ --exclude .Trash \ --exclude .dropbox \ --exclude Dropbox \ --exclude Library \ --include Library/Application\ Support -