Blame view

examples/clsync-start-rsyncdirect.sh 315 Bytes
redmine authored
1
#!/bin/sh
redmine authored
2

redmine authored
3
mkdir -m 700 -p testdir/from testdir/to testdir/listdir
redmine authored
4 5 6 7 8 9

cat > rules <<EOF
-d^[Dd]ont[Ss]ync\$
+*.*
EOF

redmine authored
10 11 12 13 14 15 16 17 18 19
case "$(uname -s)" in
	GNU/kFreeBSD)
		OPTS=''
		;;
	*)
		OPTS='-p safe'
		;;
esac

sudo $(which clsync) -K example-simple -M rsyncdirect -w2 -t5 -W ./testdir/from -R rules -D ./testdir/to $OPTS $@
redmine authored
20