utils/syncrepo.sh
author Anders Bergh <anders1@gmail.com>
Tue, 15 Jan 2008 03:58:45 +0100
changeset 13 a52a8259d60f
parent 6 917f1dbdf849
permissions -rwxr-xr-x
Remove non-D related PKGBUILD's, will move them to a personal repository instead.

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

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

echo "Uploading updated packages to remote server..."

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"