]> gitweb.fluxo.info Git - cache.git/commitdiff
Simple sync script
authorCache Saravento <cache@sarava.org>
Sat, 8 Aug 2015 14:17:36 +0000 (11:17 -0300)
committerCache Saravento <cache@sarava.org>
Sat, 8 Aug 2015 14:17:36 +0000 (11:17 -0300)
bin/sync [new file with mode: 0755]

diff --git a/bin/sync b/bin/sync
new file mode 100755 (executable)
index 0000000..aaae025
--- /dev/null
+++ b/bin/sync
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# Simple sync script.
+#
+
+# Parameters
+DIRNAME="`dirname $0`"
+WORK="$DIRNAME/.."
+CWD="`pwd`"
+
+# Sync
+cd $DIRNAME
+rsync -av rsync://cache.sarava.org/cache/data/ data/