[Borgbackup] Issues understanding prune 'keep' rules

Nils Blomqvist dassies at eml.cc
Wed Nov 18 02:12:18 EST 2020


Still trying to make sense of how the prune rules are applied to my 
backups.

I added labels to the right to indicate which ’keep’ rule I think is 
matched,
but I’m just guessing. Looking for some help here.

The rules again, for reference:

> keep-within   3d
> keep-daily    7
> keep-weekly   4
> keep-monthly  6
> keep-yearly   7

Prune run (on 2020-10-24, after the latest backup):

Keeping archive: backup-2020-10-24T10:09:21    within 3d
Keeping archive: backup-2020-10-21T12:45:19    daily 7
Keeping archive: backup-2020-10-19T18:46:34    daily 7
Keeping archive: backup-2020-10-06T16:32:43    daily 7
Keeping archive: backup-2020-08-22T10:34:31    daily 7
Keeping archive: backup-2020-08-13T18:50:32    daily 7
Keeping archive: backup-2020-08-07T09:45:07    daily 7
Keeping archive: backup-2020-08-04T18:05:27    daily 7
Keeping archive: backup-2020-08-03T17:17:32    weekly 4
Keeping archive: backup-2020-08-02T11:29:23    monthly 6
Keeping archive: backup-2020-07-29T19:17:17    ?
Keeping archive: backup-2020-07-24T17:01:59    ?
Keeping archive: backup-2020-07-19T08:10:21    ?
Keeping archive: backup-2020-07-06T17:58:07    ?
Pruning archive: backup-2020-07-05T08:12:26    ?

Nils

On 16 Nov 2020, at 13:18, Nils Blomqvist wrote:

> Accidentally sent my reply - see below - to Dan instead of to the 
> list. So
> here it is. Also including Dan’s reply.
>
> On 6 Nov 2020, at 16:49, Dan Christensen wrote:
>
>> Nils,
>>
>> Please keep the discussion on list.  And you should always 
>> cut-and-paste
>> your command line, in case we see something that you do not.
>>
>> In this case, the archives kept seem to exactly match your prune 
>> rules,
>> so you should also explain why you think there is a problem.
>>
>> Dan
>>
>> On Nov  6, 2020, Nils Blomqvist <dassies at eml.cc> wrote:
>>
>>> Thanks Dan. The `prune` command has nothing significant other than
>>> the rules in my previous e-mail (except —list).
>>>
>>> The excerpts include the entire listings now.
>>>
>>> Excerpt of first prune (24 Okt 2020 10:09:51):
>>>
>>> Keeping archive: backup-2020-10-24T10:09:21
>>> Keeping archive: backup-2020-10-21T12:45:19
>>> Keeping archive: backup-2020-10-19T18:46:34
>>> Keeping archive: backup-2020-10-06T16:32:43
>>> Keeping archive: backup-2020-08-22T10:34:31
>>> Keeping archive: backup-2020-08-13T18:50:32
>>> Keeping archive: backup-2020-08-07T09:45:07
>>> Keeping archive: backup-2020-08-04T18:05:27
>>> Keeping archive: backup-2020-08-03T17:17:32
>>> Keeping archive: backup-2020-08-02T11:29:23
>>> Keeping archive: backup-2020-07-29T19:17:17
>>> Keeping archive: backup-2020-07-24T17:01:59
>>> Keeping archive: backup-2020-07-19T08:10:21
>>> Keeping archive: backup-2020-07-06T17:58:07
>>> Pruning archive: backup-2020-07-05T08:12:26
>>>
>>> And the second again (5 Nov 2020 14:45:44):
>>>
>>> Keeping archive: backup-2020-11-05T14:45:15
>>> Keeping archive: backup-2020-10-29T13:40:32
>>> Keeping archive: backup-2020-10-28T16:39:12
>>> Keeping archive: backup-2020-10-27T15:59:16
>>> Keeping archive: backup-2020-10-26T14:14:48
>>> Keeping archive: backup-2020-10-24T10:09:21
>>> Keeping archive: backup-2020-10-21T12:45:19
>>> Keeping archive: backup-2020-10-19T18:46:34
>>> Keeping archive: backup-2020-10-06T16:32:43
>>> Keeping archive: backup-2020-08-22T10:34:31
>>> Keeping archive: backup-2020-08-13T18:50:32
>>> Keeping archive: backup-2020-08-07T09:45:07
>>> Pruning archive: backup-2020-08-02T11:29:23
>>> Keeping archive: backup-2020-07-29T19:17:17
>>> Pruning archive: backup-2020-07-24T17:01:59
>>> Pruning archive: backup-2020-07-19T08:10:21
>>> Pruning archive: backup-2020-07-06T17:58:07
>>>
>>> Nils
>>>
>>> On 6 Nov 2020, at 15:24, Dan Christensen wrote:
>>>
>>>> Presumably you have backups more recent than those in July, and the 
>>>> more
>>>> recent ones are "using up" the keep rules.  If you want help, 
>>>> you'll
>>>> need to post a list of all recent archives up to the ones that you 
>>>> don't
>>>> understand, and the exact borg command that you used.
>>>>
>>>> Dan
>>>>
>>>> On Nov  6, 2020, Nils Blomqvist <dassies at eml.cc> wrote:
>>>>
>>>>> Settings:
>>>>>
>>>>> keep-within   3d
>>>>> keep-daily    7
>>>>> keep-weekly   4
>>>>> keep-monthly  6
>>>>> keep-yearly   7
>>>>>
>>>>> Excerpt of first prune (24 Okt 2020 10:09:51):
>>>>>
>>>>> Keeping archive: backup-2020-07-29T19:17:17
>>>>> Keeping archive: backup-2020-07-24T17:01:59
>>>>> Keeping archive: backup-2020-07-19T08:10:21
>>>>> Keeping archive: backup-2020-07-06T17:58:07
>>>>> Pruning archive: backup-2020-07-05T08:12:26
>>>>>
>>>>> Excerpt of second prune (5 Nov 2020 14:45:44):
>>>>>
>>>>> Keeping archive: backup-2020-07-29T19:17:17
>>>>> Pruning archive: backup-2020-07-24T17:01:59
>>>>> Pruning archive: backup-2020-07-19T08:10:21
>>>>> Pruning archive: backup-2020-07-06T17:58:07
>>>>>
>>>>> In the first prune, the latest four archives are kept.
>>>>> In the second, only the latest is kept.
>>>>>
>>>>> I don’t understand how the pruning rules are applied.
>>>> _______________________________________________
>>>> Borgbackup mailing list
>>>> Borgbackup at python.org
>>>> https://mail.python.org/mailman/listinfo/borgbackup
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup


More information about the Borgbackup mailing list