From 6b8a36cf4275cfffa7c0ca0f355a39e54e44f7c7 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 12 Dec 2013 21:12:49 +0100 Subject: Added correct device path for external drive. Updated --exclude lines for rsync function --- .zsh.after/functions.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.zsh.after/functions.zsh') diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 80382d3..9a192d9 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -227,7 +227,7 @@ function lopen () { sudo cryptsetup luksOpen /dev/disk/by-uuid/b2a8c89e-22f3-4e16-bdd3-ef4bcac8ed4f $1 ;; "photos") - sudo cryptsetup luksOpen /dev/disk/by-uuid/b2a8c89e-22f3-4e16-bdd3-ef4bcac8ed4f $1 + sudo cryptsetup luksOpen /dev/disk/by-uuid/b3c5a842-474b-4c2f-a246-abebe1da3450 $1 ;; esac sudo mount /dev/mapper/$1 /mnt/$1 @@ -245,12 +245,12 @@ function lclose () { ## RSYNC function backupinfo () { - rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude lost+found $1 $2 + rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude 'lost+found' --exclude '.Trash-1000' --exclude '$RECYCLEBIN' --exclude 'System Volume Information' $1 $2 echo "rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude lost+found /path/to/folder/ /path/to/other/folder" } function backupfolder () { - rsync -r -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude lost+found $1 $2 + rsync -r -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude 'lost+found' --exclude '.Trash-1000' --exclude '$RECYCLEBIN' --exclude 'System Volume Information' $1 $2 } -- cgit v1.2.3-54-g00ecf