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

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: pgbackrest creating new directories (messing up cron jobs).
Дата
Msg-id 20200310134448.GA3195@tamriel.snowman.net
обсуждение исходный текст
Ответ на pgbackrest creating new directories (messing up cron jobs).  (mimble9@danwin1210.me)
Ответы Re: pgbackrest creating new directories (messing up cron jobs).  (mimble9@danwin1210.me)
Список 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

Вложения

В списке pgsql-novice по дате отправления:

Предыдущее
От: mimble9@danwin1210.me
Дата:
Сообщение: pgbackrest creating new directories (messing up cron jobs).
Следующее
От: Elizabeth Fernandez
Дата:
Сообщение: Major upgrade from 9.6.15 to 12.2