S
S
Svyatoslav Khusamov2018-08-29 21:23:16
PostgreSQL
Svyatoslav Khusamov, 2018-08-29 21:23:16

How to make automatic database backup?

How to make automatic database backup?
Let's say there are several databases on postgress on a remote server. And all of them are actively used.
You need to make a full copy on another remote server at least once a day.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
axce1, 2018-08-29
@axce1

Make a backup locally using cron and transfer it to a remote server or use the -h and -U switches from pg_dump to immediately make a backup to a remote server.

K
ky0, 2018-08-29
@ky0

If the databases are actively used and the backup process interferes with this, make a replica and backup from it. But in general pg_basebackup/pg_dump.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question