How to transfer databases form one server to other

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: How to transfer databases form one server to other
Date: 2020-01-26 16:59:09
Message-ID: 157139E4A01D436A859FB6612AE6BBD7@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

VPS server has old Debian 6 Squeeze with Postgres 9.1
It has 24 databases.

Every night backup copies are created using pg_dump to /root/backups
directory for every database.
This directory has 24 .backup files with total size 37 GB.

I installed new VPS server with Debian 10 and Postgres 12.

How to transfer those databases to new server ?

Both server have ssh and root user, postgres port 5432 open, 100 MB
internet connection and fixed IP addresses. In night they are not used by
users, can stopped during move.

Should I download .backup files and use pg_restore or use pipe to restore
whole cluster.

Andrus.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-01-26 21:20:36 Re: How to transfer databases form one server to other
Previous Message Adrian Klaver 2020-01-24 18:02:58 Re: Time zone "GST" not recognized.