[Dirvish] Sample exclude list

Paul Slootman paul at debian.org
Wed Oct 25 08:38:09 UTC 2017


On Wed 25 Oct 2017, Jenny Hopkins wrote:
> 
> Ah great - this is the sort of thing I was looking for.  Surprisingly
> hard to get the right answers when searching for rsync and exclude.
> 
> exclude:
>         + /etc/
>         + /etc/**
>         + /backup/
>         + /backup/dirvish/
>         + /backup/dirvish/*/
>         + /backup/dirvish/*/dirvish/
>         + /backup/dirvish/*/dirvish/**

You probably also need some real excludes, otherwise these won't have
any effect (everything is included by default).

Presumably something like:

exclude:
        + /etc/
        + /etc/**
        + /backup/
        + /backup/dirvish/
        + /backup/dirvish/*/
        + /backup/dirvish/*/dirvish/
        + /backup/dirvish/*/dirvish/**
	- /backup/dirvish/*/*
	- /backup/*
	- /*

Rules are evaluated in order. You might even need a "+ /" at the top.

Paul


More information about the Dirvish mailing list