utils/syncrepo.sh
author Anders Bergh <anders1@gmail.com>
Mon, 17 Dec 2007 05:19:32 +0100
changeset 2 e8ebdcd8bcd0
child 4 946a11dbdb23
permissions -rwxr-xr-x
Add a script to sync the repositories
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     1
#!/bin/bash
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     2
# Sync local Arch Linux repository with remote server
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     3
#-------------------------------------------------------------------------------
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     4
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     5
#-------------------------------------------------------------------------------
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     6
# Settings
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     7
#-------------------------------------------------------------------------------
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     8
USER=anders
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     9
SERVER=andersman.org
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    10
HTDOCS=/srv/hg/happymars/htdocs
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    11
#-------------------------------------------------------------------------------
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    12
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    13
rsync -zrptL -e ssh ../htdocs/i686/ $USER@$SERVER:$HTDOCS/i686/
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    14
echo "Finished syncing i686"
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    15
rsync -zrptL -e ssh ../htdocs/x86_64/ $USER@$SERVER:$HTDOCS/x86_64/
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    16
echo "Finished syncing x86_64"