diff options
-rw-r--r-- | .zsh.after/functions.zsh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index bc68398..80382d3 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -234,8 +234,7 @@ function lopen () { } function lclose () { - mountpoint /mnt/$1 - notmounted=$($?) + notmounted=$(mountpoint /mnt/$1) echo $notmounted if [[ $notmounted != 0 ]] ; then sudo umount /mnt/$1 @@ -243,4 +242,16 @@ function lclose () { fi } +## RSYNC + +function backupinfo () { + rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude lost+found $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 +} + + # FUNCTIONS > |