#!/bin/sh -xe
-user_dir=/srv/cloudstore/users/dpavlin/
+user_dir=/srv/cloudstore/users/test/
rm -vf $user_dir/log/*
push() {
file=`shift`
- RSYNC_PASSWORD=secret rsync $* $file rsync://dpavlin@127.0.0.1:6501/dpavlin/$file
+ RSYNC_PASSWORD=secret rsync $* $file rsync://test@127.0.0.1:6501/test/$file
}
pull() {
from=$1
to=$2
test -z "$to" && to=$1
- RSYNC_PASSWORD=secret rsync rsync://dpavlin@127.0.0.1:6501/dpavlin/$from $to
+ RSYNC_PASSWORD=secret rsync rsync://test@127.0.0.1:6501/test/$from $to
}