PG_Dump PG_Restore

Dump a remote postgres database and restore it into a local postgres database.  This method dumps first into a local file, then restores into the database.  The reason for doing it this way over piping the data straight into the database locally is that if there is an error in the import you don’t have […]

Posted on September 25, 2009 at 10:21 am by Jordan Carter · Permalink · Leave a comment
In: Server Config, Web Development · Tagged with: , , , , ,

Postgres pg_dump straight into another database for backup or development

I frequently use a dump of the live database data to test new migrations, new features. I used to pg_dump on the remote live server to a file, then scp it across to my local server, psql it back to life in a new database. I have wondered if it was possible to do it […]

Posted on May 12, 2009 at 12:28 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: , ,