annotate backup-websites @ 38:737061eac1d0 default tip

Skip more large videos and some permission issues
author IBBoard <dev@ibboard.co.uk>
date Wed, 18 Aug 2021 20:40:17 +0100
parents 278968272584
children
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
28
278968272584 Add Exif Graphr to backup list
IBBoard <dev@ibboard.co.uk>
parents: 25
diff changeset
3 for site in Admin bdstrike CMS Dev ErrorHandling Forums GlitterGoth GraceBertram HWT IBBoard Puppet PuppetPrivate SkinsAtHWT WarFoundry server-usr-local PrivateExtra Trac AbiKnight LKTutoring IBBoard/exif-graphr; 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
25
b9e808b6b01e Rsync with a dedicated key
IBBoard <dev@ibboard.co.uk>
parents: 21
diff changeset
8 rsync -a -e "ssh -i /home/ibboard/.ssh/cron2" vps: ~/Websites/uploads