aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCache Saravento <cache@sarava.org>2015-08-08 11:17:36 -0300
committerCache Saravento <cache@sarava.org>2015-08-08 11:17:36 -0300
commit95a73b1c98e5f6aa87a2650e7c8f35a47f145483 (patch)
tree65f8991cfb58bfbd290efa1e79a88ed0f6c5f08c /bin
parentdfe926e4e550690358a7ceb0e8e7e51fa15162da (diff)
downloadcache-95a73b1c98e5f6aa87a2650e7c8f35a47f145483.tar.gz
cache-95a73b1c98e5f6aa87a2650e7c8f35a47f145483.tar.bz2
Simple sync script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sync13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/sync b/bin/sync
new file mode 100755
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/