push() {
file=`shift`
- RSYNC_PASSWORD=secret rsync $* $file rsync://test+localhost@127.0.0.1:6501/test/$file
+ RSYNC_PASSWORD=secret rsync $* $file rsync://test+localhost@127.0.0.1:6501/test/localhost/$file
}
pull() {
from=$1
to=$2
test -z "$to" && to=$1
- RSYNC_PASSWORD=secret rsync rsync://test+localhost@127.0.0.1:6501/test/$from $to
+ RSYNC_PASSWORD=secret rsync rsync://test+localhost@127.0.0.1:6501/test/localhost/$from $to
}
./create-user.sh test secret
./create-user.sh test secret localhost
+./store-fsck.pl test
+
+./remove-user.sh test2
+./create-user.sh test2 secret
dir=/tmp/test
rm -Rf "$dir"
cat md5sum
push md5sum -v
+# test send
+
+ps ax >> sent-to-test2
+push sent-to-test2 # must be done before first send
+
+mkdir -p .send/test2/received
+ln -s ../../../sent-to-test2 .send/test2/received/new-name
+
+push .send -rvl
+
tail -20 $user_dir/log/*
#diff -urw $user_dir/blob $dir/