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.

Revisions

  1. @nickcernis nickcernis revised this gist Jun 15, 2020. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,10 @@
    ### Exclude node_modules and .git from Backblaze backups on Mac
    1. Edit the file at `/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml`.
    2. Add this rule inside the `bzexclusions` tag:
    2. Add these rules inside the `bzexclusions` tag:

    ```xml
    <!-- Exclude node_modules. -->
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />

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

  2. @nickcernis nickcernis revised this gist Jun 15, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### Exclude node_modules from Backblaze backups on Mac
    ### Exclude node_modules and .git from Backblaze backups on Mac
    1. Edit the file at `/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml`.
    2. Add this rule inside the `bzexclusions` tag:

  3. @nickcernis nickcernis revised this gist Jun 15, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@
    ```xml
    <!-- Exclude node_modules. -->
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />

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

    ### Notes
  4. @nickcernis nickcernis revised this gist Dec 19, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@ It can take one to eight hours before new files are backed up. If you want to te

    Adding this rule does not appear to remove existing `node_modules` folders that have already backed up. Options to delete existing `node_modules` folders are here: https://help.backblaze.com/hc/en-us/articles/217666658-How-can-I-delete-files-that-have-already-been-uploaded-

    You may wish to also exclude `.git` folders with the extra exclusion rules described here: https://gist.github.com/jb510/7f52f0f4c13020b56e30ac72eb733efb

    ### References
    - a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
  5. @nickcernis nickcernis revised this gist Aug 15, 2018. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    ### Exclude node_modules from Backblaze backups on Mac
    Note that this does not remove existing `node_modules` folders that have been backed up. Options to delete existing `node_modules` folders are here: https://help.backblaze.com/hc/en-us/articles/217666658-How-can-I-delete-files-that-have-already-been-uploaded-

    1. Edit the file at `/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml`.
    2. Add this rule inside the `bzexclusions` tag:

    @@ -9,6 +7,12 @@ Note that this does not remove existing `node_modules` folders that have been ba
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
    ```

    ### Notes
    It can take one to eight hours before new files are backed up. If you want to test this has worked, best to wait a day or so. https://help.backblaze.com/hc/en-us/articles/217665498-Why-hasn-t-Backblaze-backed-up-my-new-files-yet-

    Adding this rule does not appear to remove existing `node_modules` folders that have already backed up. Options to delete existing `node_modules` folders are here: https://help.backblaze.com/hc/en-us/articles/217666658-How-can-I-delete-files-that-have-already-been-uploaded-


    ### References
    - a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
    - b. https://aoeex.com/phile/backblaze-custom-exclusions/ (examples for Windows)
  6. @nickcernis nickcernis revised this gist Aug 15, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ### Exclude node_modules from Backblaze backups on Mac
    Note that this does not remove existing `node_modules` folders that have been backed up.
    Note that this does not remove existing `node_modules` folders that have been backed up. Options to delete existing `node_modules` folders are here: https://help.backblaze.com/hc/en-us/articles/217666658-How-can-I-delete-files-that-have-already-been-uploaded-

    1. Edit the file at `/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml`.
    2. Add this rule inside the `bzexclusions` tag:
  7. @nickcernis nickcernis revised this gist Aug 15, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    ### 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:

    @@ -9,4 +11,4 @@

    ### References
    - a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
    - b. https://aoeex.com/phile/backblaze-custom-exclusions/
    - b. https://aoeex.com/phile/backblaze-custom-exclusions/ (examples for Windows)
  8. @nickcernis nickcernis revised this gist Aug 15, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@
    ```

    ### References
    a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
    b. https://aoeex.com/phile/backblaze-custom-exclusions/
    - a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
    - b. https://aoeex.com/phile/backblaze-custom-exclusions/
  9. @nickcernis nickcernis revised this gist Aug 15, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    ### Exclude node_modules from Backblaze backups on Mac
    1. Edit the file at `/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml`.
    2. Add this rule inside the `bzexclusions` tag:

  10. @nickcernis nickcernis revised this gist Aug 15, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,6 @@
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
    ```

    References:
    ### References
    a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
    b. https://aoeex.com/phile/backblaze-custom-exclusions/
  11. @nickcernis nickcernis revised this gist Aug 15, 2018. 2 changed files with 11 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions bzexcluderules_editable.xml
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    <!-- Custom rules to exclude node_modules. -->
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
    11 changes: 11 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    1. Edit the file at `/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml`.
    2. Add this rule inside the `bzexclusions` tag:

    ```xml
    <!-- Exclude node_modules. -->
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
    ```

    References:
    a. https://help.backblaze.com/hc/en-us/articles/220973007-Advanced-Topic-Setting-Custom-Exclusions-via-XML
    b. https://aoeex.com/phile/backblaze-custom-exclusions/
  12. @nickcernis nickcernis created this gist Aug 15, 2018.
    2 changes: 2 additions & 0 deletions bzexcluderules_editable.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <!-- Custom rules to exclude node_modules. -->
    <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />