[Borgbackup] restoring the cache

William Kenworthy billk at iinet.net.au
Sat Aug 13 04:45:16 EDT 2022


On 13/8/22 14:42, William Kenworthy wrote:
>
> On 13/8/22 04:21, Bzzzz wrote:
>> On Sat, 13 Aug 2022 04:02:23 +0800
>> William Kenworthy <billk at iinet.net.au> wrote:
>>
>> Hi,
>>>      I am taking a backup of a relatively large borg repo, its cache
>>> and security directory after a successful run (this backup is
>>> actually stored in another borgbackup repo).  I can reliably restore
>>> the original repo successfully without cache or security and rebuild
>>> the cache it if it gets corrupted - however this takes many hours so
>>> I would like to reuse the cache if possible.
>>>
>>> 1. why does restoring the matching cache, security and repo not work?
>>> - from reading the docs its tied up with the counter/nonce reuse
>>> protection?
>> Because it is automatically tagged with a ~/.cache/borg/CACHEDIR.TAG
>> file that prevents its backup.
>>> 2. can this be worked around
>> I backup the configuration and cache DIRs to another server :
>> cp -a /root/.cache/borg  /SRVS/CLIENT_SAVE_BORG_machine/.cache/
>>
>> This one is also backed up because the key's on the client :
>> cp -a /root/.config/borg /SRVS/CLIENT_SAVE_BORG_machine/.config/
>>
>> Jean-Yves
>> _______________________________________________
>> Borgbackup mailing list
>> Borgbackup at python.org
>> https://mail.python.org/mailman/listinfo/borgbackup
>
>
> Thanks, I'll look into it - seems like a solution.
>
> BillK
>
>
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup

No luck - I am taking the backup from "/root/.cache/borg/<UUID>" so the 
CACHEDIR.TAG sits outside the root (above the UUID).  When I mount the 
repo, the contents seem complete so so I'll keep looking

BillK




More information about the Borgbackup mailing list