From a1b25bfa624e0cb540c74d3816d4a69be3bc8f0d Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 22 Apr 2021 13:23:41 +0200 Subject: Add bin/rsyncez as a replacement for the shell alias --- bin/rsyncez | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/rsyncez (limited to 'bin') diff --git a/bin/rsyncez b/bin/rsyncez new file mode 100755 index 0000000..c79fecd --- /dev/null +++ b/bin/rsyncez @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +[ -n "$DEBUG" ] && set -x + +[ "$1" = "-mac" ] && shift && mac_args='--rsync-path=/usr/local/bin/rsync' # force brew version +exec rsync --verbose -hhh \ + --rsh="ssh -o Compression=no" \ + --archive \ + --stats \ + --partial \ + --progress \ + --protect-args \ + ${mac_args} \ + "$@" -- cgit 1.4.1