[Borgbackup] restoring the cache

Bzzzz lazyvirus at gmx.com
Fri Aug 12 16:21:29 EDT 2022


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


More information about the Borgbackup mailing list