diff options
author | Cache Saravento <cache@sarava.org> | 2015-08-08 11:17:36 -0300 |
---|---|---|
committer | Cache Saravento <cache@sarava.org> | 2015-08-08 11:17:36 -0300 |
commit | 95a73b1c98e5f6aa87a2650e7c8f35a47f145483 (patch) | |
tree | 65f8991cfb58bfbd290efa1e79a88ed0f6c5f08c | |
parent | dfe926e4e550690358a7ceb0e8e7e51fa15162da (diff) | |
download | cache-95a73b1c98e5f6aa87a2650e7c8f35a47f145483.tar.gz cache-95a73b1c98e5f6aa87a2650e7c8f35a47f145483.tar.bz2 |
Simple sync script
-rwxr-xr-x | bin/sync | 13 |
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/ |