3

I have a Postgresql Database on my Centos, I use barman to backup my database, my question is that is it possible to migrate my database to another server without downtime? I know some solutions with small downtime with pg_start_backup(), barman also can handle it, but is there anyway to do it without down time? And one more question is, what is the best way to migrate it?

2
  • Version of Postgres? Commented Jul 27, 2016 at 16:06
  • The Postgresql version is 9.4
    – Mairon
    Commented Aug 5, 2016 at 13:13

1 Answer 1

7

If you need to migrate to the same version of postgres, then you can setup slave of your db on new server with streaming replication and then just promote it to master. There will be no downtime while doing pg_basebackup, maybe just some load on disks and network caused by your whole cluster moving to new server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.