{"id":149,"date":"2011-09-09T09:11:56","date_gmt":"2011-09-09T06:11:56","guid":{"rendered":"http:\/\/fatihacar.com\/blog\/?p=149"},"modified":"2013-07-13T14:00:44","modified_gmt":"2013-07-13T11:00:44","slug":"data-dump-in-postgresql","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/data-dump-in-postgresql\/","title":{"rendered":"Data Dump in PostgreSQL"},"content":{"rendered":"<p>You can use two statement for data dump. These statements are pg_dump and pg_dumpall. pg_dump can has table data, but pg_dumpall can has all database objects these are users, groups, stores and other object, so pg_dumpall has all database object. You can move database from product system to test system with pg_dumpall easyly.<\/p>\n<p><strong>Example<\/strong><\/p>\n<blockquote><p><strong>For take dump<\/strong><\/p>\n<p>postgres$ &gt; pg_dump databasename &gt; dumpname.dump.out <strong>Note:<\/strong>You can take backup only one database.<br \/>\npostgres$ &gt; pg_dumpall &gt; dumpname.dump.out <strong>Note:<\/strong>You can take all database object with this statement.<\/p>\n<p><strong>For restore from dump<\/strong><\/p>\n<p>postgres$ &gt; psql -f dumpname.dump.out<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>You can use two statement for data dump. These statements are pg_dump and pg_dumpall. pg_dump can has table data, but pg_dumpall can has all database objects these are users, groups, stores and other object, so pg_dumpall has all database object. You can move database from product system to test system with pg_dumpall easyly. Example For&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[14,93,91],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-administration-postgresql","tag-database-administration","tag-postgresql","tag-oracle-sql"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-2p","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":7,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}