By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,779 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,779 IT Pros & Developers. It's quick & easy.

access xp postgres data from linux

P: n/a

I run an xp program in vmware that uses a postgresql db. I want to back
up this db from linux. The cmd I was given to backup the db from within
xp is:

pg_dump.exe -i -h <server> -p <port> -U <user> -F c -v -f <filename> <DB Name>

If xp/vwmare is not running and I mount the disc the xp postgresql data is
on and do:

/bin/su - mike -c "/usr/bin/postmaster -D /mnt/win_d/Program\ Files/PostgreSQL/8.0/data"

so that the linux postgresql is pointing to the xp data, what do I use for
"-h <server>" and "-p <port>" in the pg_dump cmd?

Mike
--
Aug 30 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
In article <m2hdd884v6.fsf@west_f1.net>,
Mike Ballard <dont_w@nt_spam.org> wrote:
I run an xp program in vmware that uses a postgresql db. I want to back
up this db from linux. The cmd I was given to backup the db from within
xp is:

pg_dump.exe -i -h <server> -p <port> -U <user> -F c -v -f <filename> <DB
Name>

If xp/vwmare is not running and I mount the disc the xp postgresql data is
on and do:

/bin/su - mike -c "/usr/bin/postmaster -D /mnt/win_d/Program\
Files/PostgreSQL/8.0/data"

so that the linux postgresql is pointing to the xp data, what do I use for
"-h <server>" and "-p <port>" in the pg_dump cmd?

Mike
--


I never mix databases between operating systems. I have found in most
projects, it is very rare for branches of code that are OS dependent to
be up to date concurrently.

I would have a database for XP and a database for Linux.

--
Available for Hire! http://amduus.com/Resumes/
Aug 30 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.