wiki:Postgres HowTo backup and restore

Version 1 (modified by Richard Bramley, 8 years ago) ( diff )

--

Postgres HowTo backup and restore

Tags: Postgres HowTo

See: https://www.postgresql.org/docs/9.1/static/backup-dump.html

Backup

pg_dump -U username dbname > outfile

Restore

psql -U username dbname < infile

Error: Macro BackLinks(None) failed
'Environment' object has no attribute 'get_db_cnx'

Note: See TracWiki for help on using the wiki.