{"action":"created","issue":{"url":"https://api.github.com/repos/zevv/duc/issues/174","repository_url":"https://api.github.com/repos/zevv/duc","labels_url":"https://api.github.com/repos/zevv/duc/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/zevv/duc/issues/174/comments","events_url":"https://api.github.com/repos/zevv/duc/issues/174/events","html_url":"https://github.com/zevv/duc/issues/174","id":204047919,"number":174,"title":"How to exclude directories?","user":{"login":"ChristianBeer","id":997210,"avatar_url":"https://avatars0.githubusercontent.com/u/997210?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianBeer","html_url":"https://github.com/ChristianBeer","followers_url":"https://api.github.com/users/ChristianBeer/followers","following_url":"https://api.github.com/users/ChristianBeer/following{/other_user}","gists_url":"https://api.github.com/users/ChristianBeer/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianBeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianBeer/subscriptions","organizations_url":"https://api.github.com/users/ChristianBeer/orgs","repos_url":"https://api.github.com/users/ChristianBeer/repos","events_url":"https://api.github.com/users/ChristianBeer/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianBeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-30T15:50:46Z","updated_at":"2017-04-04T15:33:00Z","closed_at":null,"body":"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.\r\n\r\nThe 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?\r\n\r\nHere is what I'm doing:\r\nI have a `/etc/ducrc` file:\r\n```\r\n[global]\r\ndatabase /var/cache/duc.db\r\n\r\n[ls]\r\nrecursive\r\nclassify\r\ncolor\r\n\r\n[index]\r\ncheck-hard-links\r\none-file-system\r\n```\r\n\r\nI'm using `duc-nox` version 1.4.2-1 on Debian. The commands I already tried:\r\n\r\n- `duc index --exclude=/srv/some/structure/exclude /srv`\r\n- `duc index --exclude=/srv/some/structure/exclude/*/* /srv` the `exclude` directory has one level of subdirectories in which the actual files are\r\n\r\nThe 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."},"comment":{"url":"https://api.github.com/repos/zevv/duc/issues/comments/291538141","html_url":"https://github.com/zevv/duc/issues/174#issuecomment-291538141","issue_url":"https://api.github.com/repos/zevv/duc/issues/174","id":291538141,"user":{"login":"zevv","id":3001919,"avatar_url":"https://avatars0.githubusercontent.com/u/3001919?v=3","gravatar_id":"","url":"https://api.github.com/users/zevv","html_url":"https://github.com/zevv","followers_url":"https://api.github.com/users/zevv/followers","following_url":"https://api.github.com/users/zevv/following{/other_user}","gists_url":"https://api.github.com/users/zevv/gists{/gist_id}","starred_url":"https://api.github.com/users/zevv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zevv/subscriptions","organizations_url":"https://api.github.com/users/zevv/orgs","repos_url":"https://api.github.com/users/zevv/repos","events_url":"https://api.github.com/users/zevv/events{/privacy}","received_events_url":"https://api.github.com/users/zevv/received_events","type":"User","site_admin":false},"created_at":"2017-04-04T15:33:00Z","updated_at":"2017-04-04T15:33:00Z","body":"Quoting Josef Kemetmüller (2017-04-04 16:04:41)\n> This also caused me quite a bit of pain. I've got some servers mounted in ~/mnt/ using `sshfs`...\n\nTry \n\n  --fs-exclude=fuse.sshfs\n  \n(check the exact file system type in /proc/mounts)\n\n\n--\n:wq\n^X^Cy^K^X^C^C^C^C\n"}}
{"actor":{"display_login":"zevv"}}