PostgreSQL/データベースのバックアップとリストア のバックアップソース(No.2)
- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- バックアップ を表示
- PostgreSQL/データベースのバックアップとリストア へ行く。
- 1 (2012-01-16 (月) 17:55:57)
- 2 (2012-06-12 (火) 17:06:53)
PostgreSQLのバックアップ・リストア方法は以下の通りです。 *WIndowsの場合の事前準備 set PGUSER=postgres *バックアップ pg_dump データベース名 > ファイル名 *テーブル単位のバックアップ pg_dump -t テーブル データベース名 > ファイル名 *リストア psql -e データベース名 < ファイル名 または psql -f ファイル名 データベース名 【参考サイト】 -http://osb.sra.co.jp/PostgreSQL/Manual/PostgreSQL-7.1-ja/backup.html -http://www.atmarkit.co.jp/fdb/rensai/postgresql/04/pgtune4-2.html