[Dirvish] Exclude files but not directories?

Darren Hook droolio at gmail.com
Thu Sep 17 10:15:33 UTC 2009


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/**

Regards,

 - Darren


More information about the Dirvish mailing list