Re: pgbackrest creating new directories (messing up cron jobs).

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: mimble9(at)danwin1210(dot)me
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: pgbackrest creating new directories (messing up cron jobs).
Date: 2020-03-10 13:44:48
Message-ID: 20200310134448.GA3195@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Greetings,

* mimble9(at)danwin1210(dot)me (mimble9(at)danwin1210(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Elizabeth Fernandez 2020-03-10 21:38:55 Major upgrade from 9.6.15 to 12.2
Previous Message mimble9 2020-03-10 10:35:17 pgbackrest creating new directories (messing up cron jobs).