Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--exclude-if-present #128

Open
wavexx opened this issue Nov 18, 2014 · 0 comments
Open

--exclude-if-present #128

wavexx opened this issue Nov 18, 2014 · 0 comments

Comments

@wavexx
Copy link

wavexx commented Nov 18, 2014

I'm trying to migrate some scripts from rdiff-backup to attic.

One feature which I often used (and seen using a lot) is the ability to exclude directories containing some sort of tag file. Currently attic has --exclude-caches, which checks for CACHEDIR.TAG, but this is rarely used in practice (both for actual caches, and for practical reasons: CACHEDIR.TAG doesn't sort well, which is very helpful for users).

It would be nice to make it general, so that you can exclude directories containing an arbitrary tag file:

attic create --exclude-if-present .NOBACKUP --exclude-if-present 00-NOBACKUP ...

--exclude-caches would basically be a shorthand for --exclude-if-present CACHEDIR.TAG.

It's actually hard to produce an exclusion list with find alone (you at least need to post-process the result), not to mention that this requires a full directory traversal (you cannot use -prune).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant