Last active
May 3, 2019 08:29
-
-
Save StaverDmitry/735a81c9e951006884189f0bbc8be8d5 to your computer and use it in GitHub Desktop.
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 --encoding=utf8 --no-owner --username username --format plain --verbose --table public.table_name db_name --file "filename" | |
psql --username=username db_name -f filename | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pg_dump -U username -W -F t database > /tmp/sail_test_dump_20190503
pg_restore -U username -v -d database ../dumps/test_dump