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

Skip already excluded directories #97

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

VladRassokhin
Copy link

@VladRassokhin VladRassokhin commented Oct 23, 2024

I've a ~/development/project directory which is manually marked as excluded from Time Machine.
Previously asimov would iterate over its subdirectories, now it won't.

Also, subsequent runs could benefit from that feature.

Using mdfind instead of find "${ASIMOV_ROOT}" -type d -xattrname "com.apple.metadata:com_apple_backup_excludeItem" -prune -print as it's superfast. Though it has a downside: some excluded directories are not reported.

Using `mdfind` since it's fast, yet it may not return all excluded directories

Kinda fixes stevegrunwell#68
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

Successfully merging this pull request may close these issues.

1 participant