aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.after
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-11-28 14:34:34 +0100
committerDavid Runge <david.runge@frqrec.com>2014-11-28 14:34:34 +0100
commit6baa2da031773c8a82555d3244f7992551c818c5 (patch)
tree01525788d580a9191155d938b41f8fe7e7afb62a /.zsh.after
parentadda655f06e7ead9e0aca89797c05f98f399a5e0 (diff)
downloaddotfiles-6baa2da031773c8a82555d3244f7992551c818c5.tar.gz
dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.tar.bz2
dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.tar.xz
dotfiles-6baa2da031773c8a82555d3244f7992551c818c5.zip
functions.zsh: Making rsync functions more readable by splitting lines.
Diffstat (limited to '.zsh.after')
-rw-r--r--.zsh.after/functions.zsh33
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
}