If I backup 8.2 DB can I restore once on 8.3?
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    35

    Question If I backup 8.2 DB can I restore once on 8.3?

    I recently bought a new portable external HD so I can play using 1 database on 2 laptops.

    I'm currently running 8.2 on my original laptop, but I'm going to backup my database and remove 8.2. At that point I will instal 8.3 on both laptops and restore the database(s).

    I'll follow the FAQ found here to enable my database on 2 laptops.


    cliffs: currently on one laptop using 8.2 - would like to go to two laptops running 8.3 (please correct any mistake before I make it)

  2. #2
    [Former] HM Support fabio's Avatar
    Join Date
    Jul 2008
    Posts
    2,067

    Default

    Please try this:

    get to the command prompt and go to the c:\program files\postgresql\8.x\bin folder and run pg_dumpall -U postgres > c:\dbbackup.sql

    This may take a while but the end result will be that your entire postgres database will be backed up to a file. If you want it saved to a different folder just change that c:\dbbackup.sql to something more fitting. Then on the new postgres folder get to the same folder in cmd and type

    psql -U postgres -f c:\dbbackup.sql postgres (or change the filename to whatever makes sense)

    This should safely backup and restore between versions

  3. #3
    Member
    Join Date
    Jul 2008
    Posts
    35

    Default

    Do any of these paths change if I'm using an external HD (E: ) to store my data files?

  4. #4
    [Former] HM Support fabio's Avatar
    Join Date
    Jul 2008
    Posts
    2,067

    Default

    Yes:

    c:\program files\postgresql\8.x\bin folder and run pg_dumpall -U postgres > E:\dbbackup.sql

    psql -U postgres -f E:\dbbackup.sql postgres

  5. #5
    Member
    Join Date
    Jul 2008
    Posts
    35

    Default

    I got a message that was something like "postgres already exists" but then it just continued the process. Now I have all kinds of lines in the command prompt saying "ALTER TABLE" over and over again.

    Is this standard?

  6. #6
    [Former] HM Support fabio's Avatar
    Join Date
    Jul 2008
    Posts
    2,067

    Default

    Have you created any databases after your refresh install?

Similar Threads

  1. Cant resize or restore from tray
    By cheksta in forum Manager General
    Replies: 1
    Last Post: 08-27-2008, 11:03 AM
  2. Problems in making backup of my database
    By FatNinja in forum Manager General
    Replies: 4
    Last Post: 08-05-2008, 12:37 PM
  3. backup for curent hud?
    By allizdor in forum Manager General
    Replies: 1
    Last Post: 07-19-2008, 09:55 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
  •