source: trunk/packages/xvm-db-backup/xvm-db-backup @ 1656

Last change on this file since 1656 was 1656, checked in by broder, 16 years ago

Add xvm-db-backup package

  • Property svn:executable set to *
File size: 278 bytes
Line 
1#!/bin/bash
2
3set -e
4
5kinit -k "daemon/$(hostname -f)"
6aklog sipb
7
8filename="$(date +%Y-%m-%d-%H-%M.sql.gz)"
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.