[Dirvish] Exclude files but not directories?

Kelsey Cummings kgc at corp.sonic.net
Sat Sep 19 01:38:11 UTC 2009

On Thu, Sep 17, 2009 at 11:15:33AM +0100, Darren Hook wrote:
> 2009/9/16 Kelsey Cummings <kgc at corp.sonic.net>:
> > Is there a way to tell dirvish/rsync to keep all
> > of the directories under /var/log (for example) sync but not the files
> > contained inside them?
> I haven't fully tested it myself but I think you can do e.g.:
> exclude:
>         + /var/log/
>         + /var/log/**/        #subfolders
>         - /var/log/**

That doesn't seem to work as is but I haven't had time to try other
things in the same vein.  Thanks though, at least there is a direction
to look at now. ;)

Kelsey Cummings - kgc at corp.sonic.net      sonic.net, inc.
System Architect                          2260 Apollo Way
707.522.1000                              Santa Rosa, CA 95407

More information about the Dirvish mailing list