[Borgbackup] include and exclude patterns
David Gasaway
dave at gasaway.org
Sun Jan 6 12:21:49 EST 2019
On Sat, Jan 5, 2019 at 11:05 PM Bill Kenworthy <billk at iinet.net.au> wrote:
> Hi,
>
> I am having problems figuring out how to include a directory within
> another directory where I do not want anything else.
>
> e.g, create a whole system backup for root "/" on a gentoo system
>
> exclude /usr/portage (contains many files/directories)
>
> include only /usr/portage/packages from that directory
>
> Can anyone suggest a simple way to do this?
>
Using --patterns-from format:
R /
+ /usr/portage/packages
- /usr/portage
It's important to use "-" not "!" as the latter will not recurse the
excluded folder, while "-" will.
--
-:-:- David K. Gasaway
-:-:- Email: dave at gasaway.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/borgbackup/attachments/20190106/cb24253b/attachment.html>
More information about the Borgbackup
mailing list