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
_______________________________________________
Dirvish mailing list
Dirvish@dirvish.org
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to