utils/syncrepo.sh
author Anders Bergh <anders1@gmail.com>
Sun, 16 Dec 2007 21:04:10 -0800
changeset 5 f29a43ca4760
parent 4 946a11dbdb23
child 6 917f1dbdf849
permissions -rwxr-xr-x
Add content to the front page

#!/bin/bash
# Sync local Arch Linux repository with remote server
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# Settings
#-------------------------------------------------------------------------------
USER=anders
SERVER=andersman.org
HTDOCS=/srv/hg/happymars/htdocs
#-------------------------------------------------------------------------------

rm ../htdocs/i686/*.old
rm ../htdocs/x86_64/*.old

rsync -zrptL -e ssh ../htdocs/i686/ $USER@$SERVER:$HTDOCS/i686/
echo "Finished syncing i686"
rsync -zrptL -e ssh ../htdocs/x86_64/ $USER@$SERVER:$HTDOCS/x86_64/
echo "Finished syncing x86_64"