fix hardcoded db name

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-06-01 15:19:21 +00:00
parent f66405ce90
commit f5b0b58a79

View File

@ -309,7 +309,7 @@ sub PG_bindump
# create backup file name
my $backupfile="$::PATH/pgbackup.$$";
my $cmd="$pgcmddir/pg_dump xcatdb -f $backupfile -U postgres -F custom";
my $cmd="$pgcmddir/pg_dump $dbname -f $backupfile -U postgres -F custom";
my $info=xCAT::Utils->runcmd($cmd, -1);
if ($::RUNCMD_RC != 0) {
xCAT::MsgUtils->message("E", "$cmd failed");