Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Joel DEV
Added: Apr 20, 2018 6:46 PM
Views: 6
Tags: no tags
Duplicates a postgres database to a new server.
  1. pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname