Skip to content

Instantly share code, notes, and snippets.

@hellodeloo
Forked from nickcernis/readme.md
Last active July 29, 2019 10:21
Show Gist options
  • Select an option

  • Save hellodeloo/cb37f40a9a361fe69fe8d5840edd59a7 to your computer and use it in GitHub Desktop.

Select an option

Save hellodeloo/cb37f40a9a361fe69fe8d5840edd59a7 to your computer and use it in GitHub Desktop.
Exclude node_modules 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