Add a script to sync the repositories
authorAnders Bergh <anders1@gmail.com>
Mon, 17 Dec 2007 05:19:32 +0100
changeset 2 e8ebdcd8bcd0
parent 1 c42d991ddcdb
child 3 21b0b0f2b2cd
Add a script to sync the repositories
utils/TODO
utils/syncrepo.sh
--- a/utils/TODO	Mon Dec 17 04:44:31 2007 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-Add some kind of repo sync script here
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/utils/syncrepo.sh	Mon Dec 17 05:19:32 2007 +0100
@@ -0,0 +1,16 @@
+#!/bin/bash
+# Sync local Arch Linux repository with remote server
+#-------------------------------------------------------------------------------
+
+#-------------------------------------------------------------------------------
+# Settings
+#-------------------------------------------------------------------------------
+USER=anders
+SERVER=andersman.org
+HTDOCS=/srv/hg/happymars/htdocs
+#-------------------------------------------------------------------------------
+
+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"