I am migrating my server application from the existing system to another system. Unfortunately, the existing system is also the database server. It has data stored. Is it possible to copy this data to the other system? I have a copy of all the table schemas.
I have no idea on how to proceed. I am using PostgreSQL.
|
|
||||
|
|
|
You could dump the database using Create the backup:
Copy Go to the new server
Then:
As I was answering, JohnP just answered with a fine answer but assumes that |
|||||||
|
|
The perhaps easiest way is to do a full dump from the old server and pipe the result straight into the new server. Like this:
Do this as a superuser. By default the UPDATE: In case you move data between different server versions, use pg_dump from the latest version, most likely pg_dump on the new server. |
||||
|
|
|
Last time I had to do a task like this I used the Free ETL tool called 'GeoKettle' http://www.spatialytics.org/projects/geokettle/ It looks a little scary at first, but all you need to do for a server to server copy is drag a Table input onto your work surface, a Table out onto your work surface, join them together then double click on each and configure them as required. Once that's done you then save the transform, and it's there to run when ever you need it. To run it, load your transform in and click the run button. Assuming everything is ok and configured correctly you should get the data transferred relatively quick. If you don't need to handle spatial data then you can use the non spatial version called 'Pentaho' but since GeoKettle can do everything that Pentaho can and more then GeoKettle is the best of the 2. It will take you a day of playing to get used to the app, but once your done you'll find everything quite easy, and re-usable. I use the app now for copying from all manner of different servers to other different servers as well as bulk loading all kinds of data. |
|||
|
|

