rebuilding a database from data folder
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    28

    Default rebuilding a database from data folder

    i followed an outdated method for backing up a database, it has worked in the past for me however this time it won't take. i simply copied the data folder to a safe drive, reformatted/reinstalled windows, installed postgresql, stopped the service, and copied the data folder over. this time the postgresql service won't start. when i remove the backed up data folder and then stop/start postgresql it works.

    i know this wasn't the proper way to backup but it is the way roy told me to do it in the past (it worked before). is anyone who is more proficient than i am with postgresql know of a possible way to rebuild my old db from this data folder? i've googled around for help however i haven't found squat.

  2. #2
    Member
    Join Date
    Jul 2008
    Posts
    93

    Default

    +1

    I have my data on another one as well. I can't get into my old windows cause it's messed up.

    So I only can access to the data folders / postgresql folders but can't start a program because I can't even get into windows.

    Would be of great help if somehow this could be done.

  3. #3
    Tech Support Manager morny's Avatar
    Join Date
    Jul 2008
    Location
    Ireland
    Posts
    20,888

    Default

    Depends, from my limited experience when they dont reconnect its for 2 reasons 1) Different versions of PostgreSQL i.e 8.2 and 8.3 or else the database is corrupt in some way

    Its better to also export the HH in case of these scenarios

    Theres one other way, Uninstall PostgreSQL and reinstall it, at the path selection stage highlight the data folder and instead of selecting the C:\program files\PostgreSQL\8.x\Data default folder choose the path youve copied the data folder to and then when you get to the installation step where it asks for your password again untick "Initialise database cluster" and it will use the old database. Might return the same result but worth a try
    --------------------------------------------------------------------------------------------------------------------
    We welcome any feedback on any solutions we provide, this helps us to provide better quality solutions in the future.

Similar Threads

  1. Copying old Data folder to fresh reformatted hard drive
    By BigMac1082 in forum Manager General
    Replies: 5
    Last Post: 11-05-2008, 08:07 PM
  2. Is copying all the HH folder to another folder safe?
    By bubume in forum Manager General
    Replies: 1
    Last Post: 10-22-2008, 07:15 PM
  3. PS HH folder
    By Colin252 in forum Manager General
    Replies: 7
    Last Post: 09-14-2008, 07:50 AM
  4. lagging Folder Import?
    By malfaire in forum Manager General
    Replies: 17
    Last Post: 08-13-2008, 08:20 PM
  5. exported hands folder
    By Thrahl in forum Manager General
    Replies: 0
    Last Post: 07-23-2008, 06:08 PM

Posting Permissions

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