diff options
author | David Runge <david.runge@frqrec.com> | 2014-11-28 14:34:34 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-11-28 14:34:34 +0100 |
commit | 6baa2da031773c8a82555d3244f7992551c818c5 (patch) | |
tree | 01525788d580a9191155d938b41f8fe7e7afb62a | |
parent | adda655f06e7ead9e0aca89797c05f98f399a5e0 (diff) | |
download | dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.tar.gz dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.tar.bz2 dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.tar.xz dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.zip |
functions.zsh: Making rsync functions more readable by splitting lines.
-rw-r--r-- | .zsh.after/functions.zsh | 33 |
1 files changed, 30 insertions, 3 deletions
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 } |