Skip to content

Instantly share code, notes, and snippets.

@oxidizeddreams
Created March 9, 2019 02:02
Show Gist options
  • Select an option

  • Save oxidizeddreams/ae59095b72f17db74d06fb331aabe7de to your computer and use it in GitHub Desktop.

Select an option

Save oxidizeddreams/ae59095b72f17db74d06fb331aabe7de to your computer and use it in GitHub Desktop.

Revisions

  1. oxidizeddreams created this gist Mar 9, 2019.
    2 changes: 2 additions & 0 deletions pg_dump_and_restore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    PGPASSWORD="" pg_dump --no-owner --no-privileges -h rds-01.us-east-1.rds.amazonaws.com -U root -d oldDB --schema public \
    | PGPASSWORD="" psql -x -q -U admin -h rds-01.cluster.us-east-1.rds.amazonaws.com newDB;