Ignore node_modules and git Folders in BackBlaze

Chris Blackwell
1 min readJul 12, 2019

--

Backblaze is my backup provider of choice. Backblaze was founded by ex-Apple engineers. As a result, the application is very native to Mac. One problem I’ve always had with my backup solutions is backing up the folders that are completely useless. This includes node_modules, .git and vendor folders.

Backblaze does not have a way to ignore a folder name through their UI. However, you can edit a file directly to have it ignore any folder and/or file matches you wish.

There is a file located in /Library/Backblaze.bzpkg/bzdata/ called bzexcluderules_editable.xml Open this file in your favourite text editor of choice and add the following lines:

<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />

You can change containts_1 directive to any folder structure you wish to be ignored. Your backups are now going to run much faster and take a much shorter time to complete.

Originally published at https://chrisblackwell.me on July 12, 2019.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Chris Blackwell
Chris Blackwell

Written by Chris Blackwell

Programmer and Business owner from Canada / USA. I help businesses and entrepreneurs develop amazing digital products 🚀

No responses yet

Write a response