Created
August 28, 2014 11:52
-
-
Save ewalk153/7a64be4bdbafc348e1c6 to your computer and use it in GitHub Desktop.
backup one postgres tables as CSV, compressed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time psql DBNAME -F , --no-align -c "SELECT * FROM TABLE" | gzip -9 > table_backup.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment