pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pg_dump & Win 9X/NT 2+ messages / 2 participants [nested] [flat]
* pg_dump & Win 9X/NT @ 2001-09-05 21:50 pmiranda@vm.com.br 0 siblings, 1 reply; 2+ messages in thread From: pmiranda@vm.com.br @ 2001-09-05 21:50 UTC (permalink / raw) To: pgsql-admin Hi, Does anyone know how can I make a copy of a database to another machine (I'm using Postgres under Win95)? I tried to use pg_dump + pg_restore, but I don't know the correct usage of them under Win 9X/NT. I'd appreciate any tips in that matter. Thanks in advance. Paulo ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_dump & Win 9X/NT @ 2001-09-13 10:31 Michael Timme <mit@e-mit.de> parent: pmiranda@vm.com.br 0 siblings, 0 replies; 2+ messages in thread From: Michael Timme @ 2001-09-13 10:31 UTC (permalink / raw) To: pgsql-admin; +Cc: pmiranda@vm.com.br Hi, pvcb> I tried to use pg_dump + pg_restore, but I don't know the correct usage of pvcb> them under Win 9X/NT. I'd appreciate any tips in that matter. create a dump file with pg_dump like pg_dump -h sourcehost dbname > outputfile.dump then connect to the other machine and create the new database psql -h desthost -d template1 create database new_dbname; exit and connect now with the generated datafile psql -h desthost -d new_dbname < outputfile.dump I tried this way and it works. regards Michael Timme -- Michael Timme mailto:mit@e-mit.de ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-09-13 10:31 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2001-09-05 21:50 pg_dump & Win 9X/NT pmiranda@vm.com.br 2001-09-13 10:31 ` Michael Timme <mit@e-mit.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox