Migrating PostgreSQL files to new server
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.


Stop the service using the services control panel (services.msc).
Delete %PROGRAMFILES%\PostgreSQL\9.3\data.
Copy the old data directory to that location.
Get properties on the data directory and in the security tab recursively grant full control to NETWORKSERVICE.
Start the service using services.msc
immediately set up backups.