simple push once rsync client
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 7 Sep 2011 18:31:37 +0000 (20:31 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 7 Sep 2011 18:31:37 +0000 (20:31 +0200)
client/cs-push.sh [new file with mode: 0755]

diff --git a/client/cs-push.sh b/client/cs-push.sh
new file mode 100755 (executable)
index 0000000..5802eaf
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -xe
+
+#inotifywait -m -r --format '%:e %f' Dropbox/
+#pwd > .pwd
+RSYNC_PASSWORD=secret rsync "$@" .pwd rsync://dpavlin@10.60.0.244:6501/dpavlin/`hostname`/copy
+#rm .pwd