Script for db structure dump added.
This commit is contained in:
parent
04df86aafc
commit
b8e412aa9b
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ require_once 'conf.php';
|
||||||
require_once "$storageServerPath/var/conf.php";
|
require_once "$storageServerPath/var/conf.php";
|
||||||
header("Conten-type: text/plain");
|
header("Conten-type: text/plain");
|
||||||
$dbname = $config['dsn']['database'];
|
$dbname = $config['dsn']['database'];
|
||||||
$res = `pg_dump -s $dbname`;
|
$dbuser = $config['dsn']['username'];
|
||||||
|
$res = `pg_dump -s $dbname -U $dbuser`;
|
||||||
echo "$res\n";
|
echo "$res\n";
|
||||||
?>
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue