7 RSYNC_PASSWORD=secret rsync $* $file rsync://$RSYNC_LOGIN@127.0.0.1:6501/$RSYNC_LOGIN/localhost/$file
12 test -z "$to" && to=$1
13 RSYNC_PASSWORD=secret rsync rsync://$RSYNC_LOGIN@127.0.0.1:6501/$RSYNC_LOGIN/localhost/$from $to
17 sudo ./remove-user.sh test@example.com
18 sudo ./remove-user.sh test2@example.com
20 RSYNC_LOGIN=`sudo ./create-user.sh test@example.com secret 500k`
21 RSYNC_LOGIN2=`sudo ./create-user.sh test2@example.com secret 20k`
28 push . --recursive --delete -v
30 if true ; then # skip tests if false
37 touch --date='2000-01-01' bar
49 uptime > "dir-test/file with spaces"
50 push dir-test --recursive -v
52 find . type -f | xargs -i md5sum {} > /tmp/md5sum
55 push dir-test --recursive --delete -v
58 pull non-existing || true
62 # test md5 import from directory
65 # client should hardlink or copy files locally to avoid wastefull pull
66 # but we test server-side hardlink here
69 md5sum clone/* | sed -e 's! ! _import/foo/bar/baz!' > md5sum
73 # test unused md5 pool quota
89 cat << __SEND__ > .sync/send/timestamp
91 $RSYNC_LOGIN2 dir1/send
92 $RSYNC_LOGIN2 dir2/send
95 # order is important! .sync must be last!
96 push send dir1 dir2 .sync -rv
103 pending=/tmp/pending.0610201109464117
104 grep ^MOVED $pending | cut -d\# -f2 | xargs -i sh -c "ps ax > {}"
107 mkdir -p .sync/pending
108 cp $pending .sync/pending/