annotate backup-websites @ 10:4158847b0f18

Back up additional websites that are in Mercurial
author IBBoard <dev@ibboard.co.uk>
date Wed, 31 Aug 2016 17:20:08 +0100
parents 7c8b5c5f0fb7
children a6f490ec0c1c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e85e3470a41e Initial commit of useful scripts
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 #! /bin/bash
e85e3470a41e Initial commit of useful scripts
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
10
4158847b0f18 Back up additional websites that are in Mercurial
IBBoard <dev@ibboard.co.uk>
parents: 6
diff changeset
3 for site in Admin CMS ErrorHandling Forums GlitterGoth GraceBertram HWT IBBoard Puppet PuppetPrivate SkinsAtHWT WarFoundry server-usr-local PrivateExtra Trac AbiKnight LKTutoring; do
0
e85e3470a41e Initial commit of useful scripts
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 cd ~/Websites/$site
2
30145875d811 Update when we pull website code down
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
5 hg pull -u --config extensions.mercurial_keyring=\!
0
e85e3470a41e Initial commit of useful scripts
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 done
10
4158847b0f18 Back up additional websites that are in Mercurial
IBBoard <dev@ibboard.co.uk>
parents: 6
diff changeset
7
4158847b0f18 Back up additional websites that are in Mercurial
IBBoard <dev@ibboard.co.uk>
parents: 6
diff changeset
8 rsync -a vps:/srv/uploads/ ~/Websites/uploads