[Borgbackup] move borg repo including cache to new machine?

devzero at web.de devzero at web.de
Mon Dec 31 04:13:06 EST 2018


to catch up with this:

the issue was not caused by the bug i found, apparently borg detects file change by ctime, not by mtime.

so, that explains everything. 

when i moved everything (ok, move is not exact here - because i did a copy with rsync) to the new machine (borg-repo, rsync staging-dir, borg-chache/security info) the ctime of every file in staging dir is reset (as ctime cannot be transferred) and so borg will rechunk all of them and also effectivly will rebuild chache...

so apparently there is no other solution besides permanently switching to --files-cache=mtime or --use-mtime !?

regards
roland






apparently, i found it was a serious bug in our backup script. 

sorry for the noise!





> Not sure why you mention the cache? It is client-side, so if you only
> moved the repo, the client side cache does not need moving at all.

for now, we do not have any borg installation remote, we do everything borg related on the backup server only/itself.

we first pull everthing from the remote servers via rsync to a local staging dir and then let borg run across that staging
area afterwards.

sure, we need extra space, but what we want is rotating, space saving, deduplicated "incremental backup forever".

so having a rsync copy + borg repo for each of our backed up servers is ok and worth the extra diskspace...

regards
roland


> Gesendet: Freitag, 28. Dezember 2018 um 17:28 Uhr
> Von: "Thomas Waldmann" <tw at waldmann-edv.de>
> An: borgbackup at python.org
> Betreff: Re: [Borgbackup] move borg repo including cache to new machine?
>
> > i need to move a larger borg-repo to a new machine.
> > 
> > apparently, after moving everything (cache dir, repo-dir and staging-dir which is rsynced) ,  borg is re-chunking everything and creating a new cache for existing source location.
> > 
> > does somebody know why and how to avoid this?
> 
> If you moved the repo "as is" and everything else stayed "as is", it
> should not do that.
> 
> Not sure why you mention the cache? It is client-side, so if you only
> moved the repo, the client side cache does not need moving at all.
> 
> Also, what do you mean with staging-dir?
> 
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup
> 


More information about the Borgbackup mailing list