We have a Win 2008 server that went down because of cpu failure. We were running parts of the Atlassian stack (JIRA, Confluence, Stash, and Bamboo) on it using PostgreSQL as the database. I now have the harddrive from that dead server mounted in to a Win 7 machine as a secondary harddrive. We unfortunately did not have backups setup. All of the instructions I see for migrating databases to new machines involve running PostgreSQL cli programs against a running PostgreSQL instance, but in my case all I have is a folder not a running PostgreSQL server. I would like to be able to install PostgreSQL on the Win 7 machine, somehow get the data migrated over to the new PostgreSQL installation and off of that secondary drive. Then I would like to export the data out using the standard procedures and move it to a new production server or possibly export using the Atlassian backup tools if we end up moving the data in to the Atlassian cloud service where they use who knows what db engine. Either way though I need the data off the olddrive and running in a new PostgreSQL server to move forward. Anyone have any ideas?
Postgresql – Migrating PostgreSQL files to new server
postgresqlpostgresql-9.3
Related Question
- Postgresql – Postgres develops server doesn’t listen error spontaniously
- Postgresql – Migrating PostgreSQL 9.1 database to Ubuntu 14.04
- PostgreSQL queries from external IP causing high CPU load. Have I been hacked
- Postgresql – Move a Postgres 9.3 database to a new server and update to 9.6 with minimum downtime
- PostgreSQL. Shared_memory and sessions
- Postgresql – Moving a hard disk with PostgreSQL data folder to another server
Best Answer
Install the latest minor release of the same PostgreSQL major version - e.g. if you were using 9.3.1 before, install 9.3.9. Make sure it's the same architecture - i.e. if you were using a 32-bit PostgreSQL before you must install 32-bit PostgreSQL now.
services.msc
).%PROGRAMFILES%\PostgreSQL\9.3\data
.data
directory to that location.data
directory and in the security tab recursively grant full control toNETWORKSERVICE
.services.msc