utils/syncrepo.sh
author Anders Bergh <anders1@gmail.com>
Mon, 17 Dec 2007 05:30:56 +0100
changeset 6 917f1dbdf849
parent 4 946a11dbdb23
permissions -rwxr-xr-x
Made syncrepo more verbose (feels nicer that way)
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
6
917f1dbdf849 Made syncrepo more verbose (feels nicer that way)
Anders Bergh <anders1@gmail.com>
parents: 4
diff changeset
    13
echo "Uploading updated packages to remote server..."
917f1dbdf849 Made syncrepo more verbose (feels nicer that way)
Anders Bergh <anders1@gmail.com>
parents: 4
diff changeset
    14
4
946a11dbdb23 update the dmdirc-nightly date
Anders Bergh <anders1@gmail.com>
parents: 2
diff changeset
    15
rm ../htdocs/i686/*.old
946a11dbdb23 update the dmdirc-nightly date
Anders Bergh <anders1@gmail.com>
parents: 2
diff changeset
    16
rm ../htdocs/x86_64/*.old
946a11dbdb23 update the dmdirc-nightly date
Anders Bergh <anders1@gmail.com>
parents: 2
diff changeset
    17
2
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    18
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
    19
echo "Finished syncing i686"
e8ebdcd8bcd0 Add a script to sync the repositories
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    20
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
    21
echo "Finished syncing x86_64"