Database back-up/restore attempt..
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    33

    Default Database back-up/restore attempt..

    Hey guys..

    My intentions are to take my desktop database and get it onto my laptop. Note that it's close to a million hands so it's a big db.

    I tried doing the backup as shown here: (FAQ - Hold'em Manager Poker Tracking Software :: Backup & Restore Database)

    After about 45 minutes-ish I got an error. I don't recall the exact error but will work on getting that. It produced an ~800mb file and I was hoping that it might have still worked (even with the error) but after using the restore process from that same page, the database was empty after the restore (on the laptop).

    So then I tried using the Backup/Restore option in the HM software (as opposed to pgAdmin) and got this error immediately: "error: Could not find PostgreSQL installation directory"

    Not sure what to do.. Couldn't find any similar problems from sifting through FAQs and forums.

    I'll quote that exact error message I get in pgAdmin asap..

  2. #2
    Member
    Join Date
    Sep 2009
    Posts
    33

    Default

    "pg_dump: SQL command failed
    pg_dump: Error message from server: ERROR: invalid page header in block 40387 of relation "playerhandsflop"
    pg_dump: The command was: COPY public.playerhandsflop (playerhand_id, betamount, callamount, calledcbet, raisedcbet, lasttoactonstreet, relativeposition, betpercentofpot, raisepercentofpot, facingraisepercentofpot, facingbetpercentofpot, wascheckraised, unopened, madehandvalue, flushdrawvalue, straightdrawvalue, stackpotratio) TO stdout;
    pg_dump: *** aborted because of error"

  3. #3
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    Which SQL version are you using?
    Can you vacuum/reindex the database first before you create the .backup file to make sure there are no corruptions in any of the indexes.

    If you then get a similar error, reimport the original handhistories instead into a new database on the laptop.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  4. #4
    Member
    Join Date
    Sep 2009
    Posts
    33

    Default

    PostgreSQL 8.2

    I'll try doing that now.

  5. #5
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    You also installed SQL 8.2 on the laptop?

    SQL 8.2 is not compatible with 8.4 in case you were trying to restore a 8.2 backup--> to a 8.4 postgres.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  6. #6
    Member
    Join Date
    Sep 2009
    Posts
    33

    Default

    Vacuuming stopped after ~15 minutes and I got this:


    INFO: analyzing "public.playerhandstourneymisc"
    INFO: "playerhandstourneymisc": scanned 3000 of 3870 pages, containing 240229 live rows and 0 dead rows; 3000 rows in sample, 309895 estimated total rows
    INFO: vacuuming "public.playerhandsflop"

    ERROR: invalid page header in block 40387 of relation "playerhandsflop"


    The button was still "OK" and not "DONE" so I'm assuming it didn't work?

  7. #7
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    Try a reindex. It currently seems the playerhandsflop index is corrupt.
    (so the backup was also corrupt, that's why it wasn't possible to restore it)
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  8. #8
    Member
    Join Date
    Sep 2009
    Posts
    33

    Default

    I ended up just doing all the handhistories instead and that's worked out fine for the most part.. thanks

Similar Threads

  1. How do i back up my database?
    By mikeyb182 in forum Manager General
    Replies: 1
    Last Post: 01-10-2011, 10:20 PM
  2. Restoring a Database Using backup and restore Made a different database disappear!
    By onlymymissiscallsmedonkey in forum Manager General
    Replies: 3
    Last Post: 07-12-2010, 08:56 PM
  3. Back up and Restore with PostgreSQL
    By Palmiere in forum Manager General
    Replies: 1
    Last Post: 01-09-2010, 12:20 PM
  4. can't restore database
    By jacopastorius in forum Manager General
    Replies: 4
    Last Post: 11-29-2009, 11:27 AM
  5. Restore old database?
    By Piper in forum Manager General
    Replies: 0
    Last Post: 06-12-2009, 11:00 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
  •