[Borgbackup] Multi-archive searches in Borg Backup?

Thomas Gries mail at tgries.de
Sun Apr 19 15:05:29 EDT 2020


At the moment, I would suggest this ad-hoc solution

search for $pattern in all archives of $repo

for archive in $(borg list --short $repo);do echo borg list --short
$repo::$archive "re:$pattern";done

> tl,dr
> Have you ever thought about implementing a native
>
>   * "borg lookup for files in all archives of a repo" command?
>
>
> ------------------------------------------------------------------------
> Long version:
>
> I wanted to look up for files, generally matching a regular
> expression, in any(all) archives of a repo.
>
> I found this older post:
>
> "Multi-archive searches in Borg Backup?"
> https://mail.python.org/pipermail/borgbackup/2016q3/000402.html
>
> which mentions three possibilities
>
> FUSE mounted repositories have a "versions view" where all versions of
> a file are available:
> - borg mount
>
> - borg-diff and
> - borg-list
>
> are the two other possibilities, but these are treating only two
> respectively one archive of a repo.
>
> Because as Thomas says  "that fuse support is not present /
> unproblematic on all platforms.", the "borg mount" may not a generally
> available method:
> I bring up the question therefore:
> Have you ever thought about implementing a native "borg lookup for
> files in all archives of a repo" command?
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/borgbackup/attachments/20200419/1bd0590e/attachment.html>


More information about the Borgbackup mailing list