3 user_dir=/srv/cloudstore/users/test/
4 rm -Rvf $user_dir/log/* #$user_dir/blob/*
10 RSYNC_PASSWORD=secret rsync $* $file rsync://$RSYNC_LOGIN@127.0.0.1:6501/$RSYNC_LOGIN/localhost/$file
15 test -z "$to" && to=$1
16 RSYNC_PASSWORD=secret rsync rsync://$RSYNC_LOGIN@127.0.0.1:6501/$RSYNC_LOGIN/localhost/$from $to
20 sudo ./remove-user.sh test@example.com
21 sudo ./remove-user.sh test2@example.com
23 RSYNC_LOGIN=`sudo ./create-user.sh test@example.com secret 200k`
24 RSYNC_LOGIN2=`sudo ./create-user.sh test2@example.com secret 20k`
30 push . --recursive --delete -v
36 touch --date='2000-01-01' bar
48 uptime > "dir-test/file with spaces"
49 push dir-test --recursive -v
51 find . type -f | xargs -i md5sum {} > /tmp/md5sum
54 push dir-test --recursive --delete -v
57 pull non-existing || true
61 # test md5 import from directory
64 # client should hardlink or copy files locally to avoid wastefull pull
65 # but we test server-side hardlink here
68 md5sum clone/* | sed -e 's! ! _import/foo/bar/baz!' > md5sum
74 ps ax >> sent-to-$RSYNC_LOGIN2
75 push sent-to-$RSYNC_LOGIN2 # must be done before first send
77 mkdir -p .send/$RSYNC_LOGIN2/received
78 ln -s ../../../sent-to-$RSYNC_LOGIN2 .send/$RSYNC_LOGIN2/received/new-name