pgsql-general
❮
Move pgBackrest repo?
- Jump to comment-1Colin 't Hart<colinthart@gmail.com>Jan 14, 2026, 3:24 PM UTCHi all,
What is the best way to move a pgBackrest repo?
It was configured as /var/lib/pgbackrest, but we want to move it to
/data/pbackrest to get it off the root partition.
It is being written to continually by archivers from several servers. Since
access is over ssh, there's no server component that we can just stop for
the duration.
Thanks,
Colin- Jump to comment-1Greg Sabino Mullane<htamfids@gmail.com>Jan 14, 2026, 4:30 PM UTCOn Wed, Jan 14, 2026 at 10:24 AM Colin 't Hart <colinthart@gmail.com> wrote:
* rsync to get things mostly copied
What is the best way to move a pgBackrest repo?
* use 'pgbackrest stop' to prevent it from running
* verify no pgbackrest processes still going
* update the conf file to point to the new dir
* final rsync
* rename the old repo dir so nothing writes to it by accident
* use 'pgbackrest start'
Cheers,
Greg
--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support - Jump to comment-1Ron Johnson<ronljohnsonjr@gmail.com>Jan 14, 2026, 3:48 PM UTCOn Wed, Jan 14, 2026 at 10:24 AM Colin 't Hart <colinthart@gmail.com> wrote:
Hi all,
The first thing I'd do is start rsyncing from /var/lib/pgbackrest to
What is the best way to move a pgBackrest repo?
It was configured as /var/lib/pgbackrest, but we want to move it to
/data/pbackrest to get it off the root partition.
It is being written to continually by archivers from several servers.
Since access is over ssh, there's no server component that we can just stop
for the duration.
/data/pbackrest.
I don't, though, know enough about remote PgBackRest configuration to know
whether PG on the db servers needs to be stopped for the moment when you
reconfigure pgbr on the repo server.
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!