Restoring Data on a new computer
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    67

    Default Restoring Data on a new computer

    Hi!

    I did backup my database on my old computer using pgadmin (postgresql 8.3). I didn't know by the time HM has a backup function as well.
    I did try to restore my database and everything works fine on my old computer.

    On my new computer I did install postgresql 9.0. I did create a new database using SQL_ASCII. But somehow I can''t restore my database. I get an error "Database wasn't found".

    Do I have to switch back to postgresql8.3? What went wrong?

    Thx and happy new year!


    PS: This is the comman line pgadmin creates. Does that look right? (Looks kind of strange around dbname?!?

    C:/Program Files/PostgreSQL/9.0/bin\pg_restore.exe --host localhost --port 5432 --username postgres --dbname \"HoldemManager2010\" --verbose "D:\Documents\Dadabase Backups\hm2010.backup"
    Last edited by hmf_1; 12-31-2010 at 01:28 PM.

  2. #2
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    As far as i know Postgres 9 can't read 8.3 backups.

    Additionally Postgres 9 is not officially supported by HM - it works in general but not the build in backup/restore functionality.

    You should install 8.4 on a different port, import the 8.3 backup, create a new 8.4 backup and restore this under 9.0.
    Or you use 8.3 or 8.4.

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    5

    Default

    I dont want to open a new topic (i hope it's not problem), so i just write down here my problem which is connected to the topic.

    I did backup on my postgresql database (postgresql 8.3.x) and I reinstalled my windows 7, i setup firstly a postgresql 8.4.x version, I restored the database as I read in the faq.
    But when I tried to launch holdemmanager, it doesn't accept the database when i clicked "set as default" in Database Control Panel ("You can only make Holdem Manager databases the default database")

    I tried it with postgresql 8.3, but the problem is same.

  4. #4
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    Seems like something is wrong with your backup / restore.

    Did you restore the backup on the new installation via pgadmin into an empty, new created database?
    Did you create this new database with the same coding as the original one?

    When you created the backup did you change the pgadmin backup options somehow?

  5. #5
    Junior Member
    Join Date
    Sep 2010
    Posts
    5

    Default

    Yes I created a new empty database.
    How do you mean the same coding? I didnt change anything on the "create new database" window, i just wrote a new name(but its not the same as the original).
    When i did the backup it was long time but the restore was only a few sec. It is problem?
    I tried to follow the instructions of the faq, so i dont think i changed any options.

  6. #6
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    Older postgresql versions use a coding of SQL_ASCII, newer ones UTF.
    So if you try to restore an older backup you need to change the coding and the template when creating the database.

    To find out the coding of your backup file open it in a texteditor. There should be some readable text in the first lines about the coding but don't change anything.

  7. #7
    Junior Member
    Join Date
    Sep 2010
    Posts
    5

    Default

    I found an encoding line, which is 'win1250', just like the new database.

  8. #8
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    Ok, that should be fine.
    We have a bug in the database management with the export but the same message as the one you posted above comes up.
    Can you try 1.11.05d instead? FAQ - Hold'em Manager Poker Tracking Software :: Download Links For Past Builds

  9. #9
    Junior Member
    Join Date
    Sep 2010
    Posts
    5

    Default

    nothing changed...
    it seems i should import the hands.
    Last edited by gerapapa; 01-10-2011 at 06:16 PM.

  10. #10
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    Do you get any errors in the import message window?

Similar Threads

  1. New Computer-how to transfer HEM data
    By comura125 in forum Manager General
    Replies: 3
    Last Post: 04-06-2011, 05:48 AM
  2. New Computer Install and data doesnt match
    By oossuuu754 in forum Manager General
    Replies: 3
    Last Post: 11-05-2009, 04:05 PM
  3. Replies: 4
    Last Post: 09-08-2009, 08:14 PM
  4. Replies: 1
    Last Post: 07-24-2009, 05:55 PM
  5. restoring database on 2nd computer
    By djfl in forum Manager General
    Replies: 14
    Last Post: 07-17-2009, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •