restoring db on laptop (formerly hosted on dedicated server)
Posted: Wed Oct 05, 2011 3:38 pm
When I play poker at home, I have a dedicated server running PostgreSQL.
PT3 is installed on both my laptop and desktop PC. Whichever computer I use to play poker, it connects to the db on the server. No probs.
Now I want to be able to use PT3's HUD when I play away from home, so I'm trying to copy my database onto my laptop.
* I've used the 'backup' function to back up my db to a zip file on my laptop.
* I've installed PostgreSQL (same version - v8.3) onto my laptop, following the instructions on your website.
* I've created a new database on the local machine (server name localhost) which appears to have worked fine - it's my default/active db.
* I've tried to restore from my backup...
This is where it goes wrong.
My first instinct was that, because I already had a db with that name in Database Management on PT3, it's trying to restore to that db (the one on the dedicated server - which is powered off) instead of restoring to my freshly created db.
So I tried temporarily removing that db from my laptop's db list... but I still get the same problem.
I had a search through your HOWTOs and forum, and now I am under the impression that PT3 does indeed try restore to a db with the same name as the backup - so it either restores to an existing db with that name, OR it creates a new db with that name.
1. Please can you clarify whether I have understood correctly?
2. Do you have any idea why I should get the 'connect error'? Could it be that PT3 is adamantly trying to restore the db to my remote server instead of to my local installation of PostgreSQL? Is the original server name written to the backup along with the db?
(BTW I have checked that this is not a firewall issue - there's nothing untoward in my firewall's event log.)
Please advise! Thanks in advance.
PT3 is installed on both my laptop and desktop PC. Whichever computer I use to play poker, it connects to the db on the server. No probs.
Now I want to be able to use PT3's HUD when I play away from home, so I'm trying to copy my database onto my laptop.
* I've used the 'backup' function to back up my db to a zip file on my laptop.
* I've installed PostgreSQL (same version - v8.3) onto my laptop, following the instructions on your website.
* I've created a new database on the local machine (server name localhost) which appears to have worked fine - it's my default/active db.
* I've tried to restore from my backup...
This is where it goes wrong.
- Code: Select all
-------------------
Databases
-------------------
pt3_db_russelldust Decompressing...Connect Error
My first instinct was that, because I already had a db with that name in Database Management on PT3, it's trying to restore to that db (the one on the dedicated server - which is powered off) instead of restoring to my freshly created db.
So I tried temporarily removing that db from my laptop's db list... but I still get the same problem.
I had a search through your HOWTOs and forum, and now I am under the impression that PT3 does indeed try restore to a db with the same name as the backup - so it either restores to an existing db with that name, OR it creates a new db with that name.
1. Please can you clarify whether I have understood correctly?
2. Do you have any idea why I should get the 'connect error'? Could it be that PT3 is adamantly trying to restore the db to my remote server instead of to my local installation of PostgreSQL? Is the original server name written to the backup along with the db?
(BTW I have checked that this is not a firewall issue - there's nothing untoward in my firewall's event log.)
Please advise! Thanks in advance.