Skip to content

Instantly share code, notes, and snippets.

@AntonioErdeljac
Forked from nickcernis/readme.md
Created March 16, 2025 14:21
Show Gist options
  • Save AntonioErdeljac/2e9dca11a8cc344a807475df907c82b5 to your computer and use it in GitHub Desktop.
Save AntonioErdeljac/2e9dca11a8cc344a807475df907c82b5 to your computer and use it in GitHub Desktop.
Exclude node_modules and .git from Backblaze backups on Mac

Exclude node_modules from Backblaze backups on Mac

Note that this does not remove existing node_modules folders that have been backed up.

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add this rule inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment