From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to transfer databases form one server to other
Date: Sun, 26 Jan 2020 13:20:36 -0800
Message-ID: <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com> (raw)
In-Reply-To: <157139E4A01D436A859FB6612AE6BBD7@dell2>
References: <157139E4A01D436A859FB6612AE6BBD7@dell2>
On 1/26/20 8:59 AM, Andrus wrote:
> 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 ?
Before you do any of this I would check the Release Notes for the first
release of each major release. Prior to version 10 that would be X.X.x
where X is a major release. For 10+ that is X.x. I would also test the
upgrade before doing it on your production setup.
Best practice if you are going the dump/restore route is to use the
pg_dump binary from the new server(12) to dump the old server(9.1)
>
> 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.
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, kobruleht2@hot.ee
Subject: Re: How to transfer databases form one server to other
In-Reply-To: <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com>
References: <157139E4A01D436A859FB6612AE6BBD7@dell2> <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox