Last change
on this file since 2339 was
2259,
checked in by broder, 16 years ago
|
I'm an idiot - fix a typo in the new xvm-db-backup.
|
-
Property svn:executable set to
*
|
File size:
541 bytes
|
Rev | Line | |
---|
[1656] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | kinit -k "daemon/$(hostname -f)" |
---|
| 6 | aklog sipb |
---|
| 7 | |
---|
[2257] | 8 | db_filename="/mit/xvm/backups/db/prod/$(date +%Y/%m/%d.%H%M.sql.gz)" |
---|
[2254] | 9 | mkdir -p "$(dirname $db_filename)" |
---|
[1656] | 10 | |
---|
| 11 | /usr/bin/pg_dump -U "$(invirt-getconf db.user)" \ |
---|
| 12 | -h "$(invirt-getconf db.host)" \ |
---|
[1711] | 13 | "$(invirt-getconf db.dbname)" | gzip - >"$db_filename" |
---|
| 14 | |
---|
[2257] | 15 | running_filename="/mit/xvm/log/running/prod/$(date +%Y/%m/%d.%H%M.gz)" |
---|
[2259] | 16 | mkdir -p "$(dirname $running_filename)" |
---|
[1711] | 17 | |
---|
| 18 | remctl "$(invirt-getconf remote.hostname)" web listvms | gzip - >"$running_filename" |
---|
Note: See
TracBrowser
for help on using the repository browser.