root > WikiSense-trunk > util > sync

sync

text/x-shellscript, 430 bytes (load raw)
#!/bin/bash

to="$1"
dir=`dirname "$0"`/..
from="*"
opt=''

if [ -z "$to" ]; then
  to='tools.wikimedia.de:~/www/WikiSense-play/'
fi

if [ "$to" == 'ww' ]; then
  to='aspra27.informatik.uni-leipzig.de:~/www/WikiWord/WikiSense'
  opt='--exclude /attic/ --exclude /web/ --exclude /tools/ --exclude /util/'
fi

cd "$dir"

echo send files to "$to"
rsync -upt -C -v -r --safe-links --exclude-from "util/rsync.exclude" $opt $from "$to"