test send_file with spaces in both arguments
[cloudstore.git] / client / rsync-push.sh
index 62f0818..d3ec405 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh -xe
 
+. ./env.sh
 #inotifywait -m -r --format '%:e %f' Dropbox/
 pwd > .pwd
-RSYNC_PASSWORD=secret rsync .pwd "$@" rsync://dpavlin@10.60.0.244:6501/dpavlin/`hostname`/
+RSYNC_PASSWORD=secret rsync .pwd "$@" rsync://$USER@$IP:6501/$USER/`hostname`/
 rm .pwd