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

From mimble9@danwin1210.me
Subject Re: pgbackrest creating new directories (messing up cron jobs).
Date
Msg-id c13c5fb8c0b95a9bb68f7ecefb829c7f.squirrel@danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion
Whole thread Raw
In response to Re: pgbackrest creating new directories (messing up cron jobs).  (Stephen Frost <sfrost@snowman.net>)
Responses Re: pgbackrest creating new directories (messing up cron jobs).  (Stephen Frost <sfrost@snowman.net>)
List pgsql-novice
Thank you for your answer!

>
>> 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.
>

The cronjob is using 'mutt' to mail me the .gz files at a set period.

It says:

cd /var/lib/pgbackrest/archive/main/10/0000000100000000/
echo "" | mutt -s "Ttile" test@example.com -a *.gz

Of course, once 0000000100000000 becomes 0000000100000001, this no longer
works.

Is there, perhaps, a better way to achieve my goal?

Thanks again - I do appreciate all your help.




pgsql-novice by date:

Previous
From: Elizabeth Fernandez
Date:
Subject: Major upgrade from 9.6.15 to 12.2
Next
From: Stephen Frost
Date:
Subject: Re: pgbackrest creating new directories (messing up cron jobs).