pg_dump -U [superuser] -Fc [dbname] > db.dump
This syntax allows importing to a database with the name of your choice.
createdb -T template0 [dbname]
pg_restore --clean --if-exists --no-acl --no-owner --verbose -d [dbname] -U [superuser] db.dump
pg_dump -U [superuser] -Fc [dbname] > db.dump
This syntax allows importing to a database with the name of your choice.
createdb -T template0 [dbname]
pg_restore --clean --if-exists --no-acl --no-owner --verbose -d [dbname] -U [superuser] db.dump