Last change
on this file since 1657 was
1657,
checked in by broder, 16 years ago
|
Whoops - put the backup in the right directory
|
-
Property svn:executable set to
*
|
File size:
303 bytes
|
Rev | Line | |
---|
[1656] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | kinit -k "daemon/$(hostname -f)" |
---|
| 6 | aklog sipb |
---|
| 7 | |
---|
[1657] | 8 | filename="/mit/xvm/backups/db/prod/$(date +%Y-%m-%d-%H-%M.sql.gz)" |
---|
[1656] | 9 | |
---|
| 10 | /usr/bin/pg_dump -U "$(invirt-getconf db.user)" \ |
---|
| 11 | -h "$(invirt-getconf db.host)" \ |
---|
| 12 | "$(invirt-getconf db.dbname)" | gzip - >"$filename" |
---|
Note: See
TracBrowser
for help on using the repository browser.