utils/syncrepo.sh
author Anders Bergh <anders1@gmail.com>
Mon, 17 Dec 2007 05:30:04 +0100
changeset 4 946a11dbdb23
parent 2 e8ebdcd8bcd0
child 6 917f1dbdf849
permissions -rwxr-xr-x
update the dmdirc-nightly date add x86_64 to luafilesystem remove *.old from the repos before rsyncing
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
4
946a11dbdb23 update the dmdirc-nightly date
Anders Bergh <anders1@gmail.com>
parents: 2
diff changeset
    13
rm ../htdocs/i686/*.old
946a11dbdb23 update the dmdirc-nightly date
Anders Bergh <anders1@gmail.com>
parents: 2
diff changeset
    14
rm ../htdocs/x86_64/*.old
946a11dbdb23 update the dmdirc-nightly date
Anders Bergh <anders1@gmail.com>
parents: 2
diff changeset
    15
2
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    16
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
    17
echo "Finished syncing i686"
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    18
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
    19
echo "Finished syncing x86_64"