I am trying to dump a postgres database in Linux and then restore it in Windows. However, when I use the following command:
pg_dump -F p tempDB > tempDB.dump.out
The created file will not be usable in Windows. In fact, when I log into Windows I cannot see the file there! Then when I log in in Linux I notice the tempDB.dump.out file does not exist there either anymore. This is however, when I use the above command, tempDB.dump.out has a size about 400MB.
Am I doing something wrong?
Thank you in advance
/tmp
folder? Are you using samba then for file shares? What if you create any other file in that share (like a simple txt file), can you see it in Windows? – lurker Sep 18 '14 at 13:34-Fc
for the custom format. It's quicker to restore and more flexible. – Richard Huxton Sep 18 '14 at 13:58