From 6baa2da031773c8a82555d3244f7992551c818c5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 28 Nov 2014 14:34:34 +0100 Subject: functions.zsh: Making rsync functions more readable by splitting lines. --- .zsh.after/functions.zsh | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to '.zsh.after/functions.zsh') diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 44ce51d..14d133d 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -305,12 +305,39 @@ lclose() { ## RSYNC backupinfo() { - 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' --exclude '.thumbs' $1 $2 - echo "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' --exclude '.thumbs' /path/to/folder/ /path/to/other/folder" + log_cyan "INFO" + 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'\ + --exclude '.thumbs'\ + $1 $2 + echo "backupfolder path/to/folder/ /path/to/other/folder" } backupfolder() { - 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' --exclude '.thumbs' $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' --exclude '.thumbs' $1 $2 } -- cgit v1.2.3-54-g00ecf