Skip to content

How to exclude directories? #174

@ChristianBeer

Description

@ChristianBeer

I want to scan a directory and all it's subdirectories excluding one substructure where I have constantly changing content which I don't care about at the moment.

The documentation of the -e flag is a bit sparse. I already tried to specify the directory but using strace I saw that duc indexed files in one of the directories. What kind of syntax does the -e flag understand?

Here is what I'm doing:
I have a /etc/ducrc file:

[global]
database /var/cache/duc.db

[ls]
recursive
classify
color

[index]
check-hard-links
one-file-system

I'm using duc-nox version 1.4.2-1 on Debian. The commands I already tried:

  • duc index --exclude=/srv/some/structure/exclude /srv
  • duc index --exclude=/srv/some/structure/exclude/*/* /srv the exclude directory has one level of subdirectories in which the actual files are

The general problem I have with these directories is that scanning them does not finish because files are continuously added and deleted and duc does not stop scanning the directories because there is always some new content in them. That is at least my assumption after letting it run for several days without it ever finishing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions