Last active
June 5, 2019 13:19
-
-
Save sauloperez/262d493cf473e366bef2137bddda0310 to your computer and use it in GitHub Desktop.
database dump with compression
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
pg_dump -U ofn_user -h localhost openfoodnetwork -Fc -f /tmp/production_dump.sql | |
# openfoodnetwork@production18:~/apps/openfoodnetwork/current$ du -h /tmp/production* | |
# 320M /tmp/production_dump_with_compression.sql | |
# 1.2G /tmp/production_dump_without_compression.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment