Home > DB | PostgreSQL > PHPからPostgreSQLをdumpする。

PHPからPostgreSQLをdumpする。

system("/usr/bin/pg_dump -u $db_name < $input_file > $out_file");

$input_fileには、

postgres(ユーザー名)
abdedfg(パスワード)

の2行の形でファイルを作る。

Comments:0

add to hatena hatena.comment (0) add to del.icio.us (0) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://ore.saizensen.net/archives/33/trackback
Listed below are links to weblogs that reference
PHPからPostgreSQLをdumpする。 from おれ最前線ねっと

Home > DB | PostgreSQL > PHPからPostgreSQLをdumpする。

Search
Feeds
Meta

Return to page top