summary refs log tree commit diff
path: root/bin/rsyncez
blob: aa544eb884c7a4a31a3ba10bdc39c4c9a261428a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e
[ -n "$DEBUG" ] && set -x

[ "$1" = "-mac" ] && shift && mac_args='--rsync-path=/usr/local/bin/rsync'     # force brew version
[ "$1" = "-mac2" ] && shift && mac_args='--rsync-path=/opt/homebrew/bin/rsync' # force brew version
exec rsync \
	--verbose \
	-hhh \
	--info=flist2,name,progress \
	--partial \
	--rsh="ssh -x -T -o Compression=no" \
	--archive \
	--protect-args \
	${mac_args} \
	"$@"

# -c chacha20-poly1305@openssh.com