Skip to content

Instantly share code, notes, and snippets.

@theShadow89
Created October 23, 2013 08:57
Show Gist options
  • Save theShadow89/7115047 to your computer and use it in GitHub Desktop.
Save theShadow89/7115047 to your computer and use it in GitHub Desktop.
dump postgress file
pg_dump myDatabase --inserts -a -t table1 -t table2 > backup.sql;
pg_dump myDatabase --inserts -a -t seq1 -t seq2 > backupSequences.sql;
Parameters descriptions:
-a, --data-only dump only the data, not the schema
-t, --table=TABLE dump the named table(s) only
--inserts dump data as INSERT commands, rather than COPY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment