Re: pgbackrest creating new directories (messing up cron jobs). - Mailing list pgsql-novice

From Stephen Frost
Subject Re: pgbackrest creating new directories (messing up cron jobs).
Date
Msg-id 20200310134448.GA3195@tamriel.snowman.net
Whole thread Raw
In response to pgbackrest creating new directories (messing up cron jobs).  (mimble9@danwin1210.me)
Responses Re: pgbackrest creating new directories (messing up cron jobs).  (mimble9@danwin1210.me)
List pgsql-novice
Greetings,

* mimble9@danwin1210.me (mimble9@danwin1210.me) wrote:
> My pgbackrest creates the files in
> /var/lib/pgbackrest/archive/main/10/0000000100000000

Yes, those are files which are created in the repo.

> Each file looks something like:
> 000000010000000100000022-033bbe600913c068e89c3d063afb1f0527bf513d.gz.

That's currently the naming, but we anticipate changing it in the future
and so I strongly recommend that you do not make assumptions or depend
on that exact naming.

> However, when the last two digits of the section before the hyphen become
> FF, pgbackrest creates a new directory:
> /var/lib/pgbackrest/archive/main/10/0000000100000001.

Yes.

> This is annoying as I have a cron job set up to focus on files in the
> 0000000100000000 directory.

What is the cronjob doing..?  You really shouldn't be hacking around
with things in the repo- there's commands available like archive-get to
extract out WAL files from the repo.

> Is there a way to force bgbackrest to only use one directory (e.g.
> 0000000100000000)?

No.

Thanks,

Stephen

Attachment

pgsql-novice by date:

Previous
From: mimble9@danwin1210.me
Date:
Subject: pgbackrest creating new directories (messing up cron jobs).
Next
From: Elizabeth Fernandez
Date:
Subject: Major upgrade from 9.6.15 to 12.2