diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-12-21 10:32:05 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-12-23 20:02:25 +0000 |
commit | 9575e78e0fd265cfeccde57ba3498032ea41fdc3 (patch) | |
tree | 21f93ea1635cb766c748d06368f3ccd8af33eaeb /baserock_backup | |
parent | 7affa8389333d211aee8d66bf492f986e09ea0f3 (diff) | |
download | infrastructure-9575e78e0fd265cfeccde57ba3498032ea41fdc3.tar.gz |
baserock_backup: Update backup script
Storyboard now has its own MySQL database (the current version
won't work with the MariaDB database that we were using before, due to
lack of some feature).
Also, the script should NOT update the timestamp files if a backup
actually failed. The actual errors will be in the journal but it's more
convenient to use the timestamps to see if some backups aren't working.
Change-Id: Ifbd541518da18a1d273638d5a432c64f68172cb4
Diffstat (limited to 'baserock_backup')
-rwxr-xr-x | baserock_backup/backup.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/baserock_backup/backup.sh b/baserock_backup/backup.sh index f16ba447..dc9db0a9 100755 --- a/baserock_backup/backup.sh +++ b/baserock_backup/backup.sh @@ -13,13 +13,19 @@ # Database /usr/bin/rsync --archive --delete-before --delete-excluded \ --hard-links --human-readable --progress --sparse \ - root@192.168.222.30: /srv/backup/database -date > /srv/backup/database.timestamp + root@192.168.222.30: /srv/backup/database \ + && date > /srv/backup/database.timestamp # Gerrit /usr/bin/rsync --archive --delete-before --delete-excluded \ --hard-links --human-readable --progress --sparse \ --exclude='cache/' --exclude='tmp/' \ - root@192.168.222.69: /srv/backup/gerrit -date > /srv/backup/gerrit.timestamp + root@192.168.222.69: /srv/backup/gerrit \ + && date > /srv/backup/gerrit.timestamp + +# Storyboard Database +/usr/bin/rsync --archive --delete-before --delete-excluded \ + --hard-links --human-readable --progress --sparse \ + root@192.168.222.30: /srv/backup/storyboard-database \ + && date > /srv/backup/storyboard-database.timestamp |