DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

gie3d
gie3d

Posted on

Back up & restore postgres

Back up
pg_dump -F c testdb > testdb.dump

Restore
pg_restore -d testdb testdb.dump

Top comments (0)

50 CLI Tools You Can't Live Without

>> Check out this classic DEV post <<