aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.after/functions.zsh
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-12-12 21:12:49 +0100
committerDavid Runge <david.runge@frqrec.com>2013-12-12 21:12:49 +0100
commit6b8a36cf4275cfffa7c0ca0f355a39e54e44f7c7 (patch)
tree2552b0fd00e1dc2724e43069cf2df49352db267f /.zsh.after/functions.zsh
parent2aead48e4f04296e23f390adc557d3a204ccdb44 (diff)
downloaddotfiles-6b8a36cf4275cfffa7c0ca0f355a39e54e44f7c7.tar.gz
dotfiles-6b8a36cf4275cfffa7c0ca0f355a39e54e44f7c7.tar.bz2
dotfiles-6b8a36cf4275cfffa7c0ca0f355a39e54e44f7c7.tar.xz
dotfiles-6b8a36cf4275cfffa7c0ca0f355a39e54e44f7c7.zip
Added correct device path for external drive. Updated --exclude lines for rsync function
Diffstat (limited to '.zsh.after/functions.zsh')
-rw-r--r--.zsh.after/functions.zsh6
1 files changed, 3 insertions, 3 deletions
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
}