[Borgbackup] understanding prune work

Adrian Klaver adrian.klaver at aklaver.com
Tue Feb 7 10:49:25 EST 2017


On 02/07/2017 12:31 AM, Maurice Libes wrote:
>
>
> Le 06/02/2017 à 22:15, Adrian Klaver a écrit :
>> On 02/06/2017 10:38 AM, Maurice Libes wrote:
>>> hi to all
>>> new to borgbackup since a few weeks,
>>> I make some test on my own data and PC before  to set in production
>>>
>>> I make a backup by day, here below
>>> but when I say to only keep 7 days, I dont understand why borg want to
>>> prune the backup of pcml-2017-01-28  and keeping older one as
>>> pcml-2017-01-15 pcml-2017-01-22  ?
>>
>> Because you have --keep-weekly=3. This will keep the last backup of
>> each week going back 3 weeks. pcml-2017-01-15 and pcml-2017-01-22 are
>> on Sundays which is the last day of an ISO week, so borgbackup is
>> doing what you want.
> ok understood
> I didn't see the things like that

How did you see it?

FYI, an explanation can be found here:

http://borgbackup.readthedocs.io/en/stable/usage.html#borg-prune

>
> ML
>>



-- 
Adrian Klaver
adrian.klaver at aklaver.com


More information about the Borgbackup mailing list