[Dirvish] Sample exclude list

Jenny Hopkins hopkins.jenny at gmail.com
Sat Oct 28 12:04:02 UTC 2017


On 28 October 2017 at 12:17, Jenny Hopkins <hopkins.jenny at gmail.com> wrote:
> On 25 October 2017 at 09:38, Paul Slootman <paul at debian.org> wrote:
>
>> 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.
>>
>
> Thanks - I'll have a play about with a test directory.
>
> Jenny

Very pleased - have a file that does just what I want now.

    + /
    + /home
    + /home/jenny/.ssh....
    + /home/jenny/.bash_history
    - /home/jenny/.*
    + /var/lib/postgres
    + /var/www
    - /var/*.
    + /root/.ssh
    + /root/.bash_history
    - /root/.*
    - /bin
    - /etc
    - /boot
    - /init*
    - /vmlinuz*
    - /proc
    - /sbin
    - /usr
    - /m*
    - /lib*
    - /tmp
    - /sys
    - /dev
    - /opt
    - /run
    - /srv


It seems you have to add subdirectories or files *before* then
excluding everything else.  The worst culprit for filling up disk
space unnecessarily are the hidden stuff in a users home directory
that change constantly, like firefox directories and imap mail folder
stuff, and also the server log files, - the above will now take care
of this.

It looks as though it could be condensed down a bit, maybe do the
adding then end with  "- /"?  And if there were a global variable
"$user" I could have instead of listing every system user that would
be cool.

Thanks for the help.

Jenny


More information about the Dirvish mailing list