470,580 Members | 2,204 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,580 developers. It's quick & easy.

access xp postgres data from linux


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
1 1868
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.

Similar topics

1 post views Thread by Anthony Ewell | last post: by
8 posts views Thread by wlcna | last post: by
4 posts views Thread by Ashwin Kutty | last post: by
3 posts views Thread by Gaetano Mendola | last post: by
reply views Thread by Jesse | last post: by
3 posts views Thread by warwick.poole | last post: by
3 posts views Thread by Bernhard Ankenbrand | last post: by
9 posts views Thread by Reid Priedhorsky | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.