Blame view

examples/clsync-start-rsyncso.sh 347 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
cc -ggdb3 -fPIC -shared -o clsync-synchandler-rsyncso.so clsync-synchandler-rsyncso.c &&
redmine authored
11

redmine authored
12
sudo $(which clsync) -K example-rsyncso -M rsyncso -w2 -t5 -W ./testdir/from -S ./clsync-synchandler-rsyncso.so -R rules -D ./testdir/to $@
redmine authored
13