-
-
Save b159732000/79a16c65339273de064e2eda39b993f8 to your computer and use it in GitHub Desktop.
Revisions
-
techouse revised this gist
May 9, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,11 +8,11 @@ # - vendor # - venv # # Feel free to update this array to your own needs. EXCLUDED_DIRECTORIES=( "env" "node_modules" "vendor" "venv" ) WORK_DIR=$(dirname "${BASH_SOURCE[0]}") WORK_DIR=$(realpath "${WORK_DIR}") for EXCLUDED_DIRECTORY in "${EXCLUDED_DIRECTORIES[@]}"; do find ${WORK_DIR} -maxdepth 2 -type d -name ${EXCLUDED_DIRECTORY} -prune -exec tmutil addexclusion {} \; -
techouse revised this gist
May 9, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,8 @@ # # Feel free to update to your own needs. WORK_DIR=$(dirname "${BASH_SOURCE[0]}") WORK_DIR=$(realpath "${WORK_DIR}") EXCLUDED_DIRECTORIES=( "env" "node_modules" "vendor" "venv" ) for EXCLUDED_DIRECTORY in "${EXCLUDED_DIRECTORIES[@]}"; do -
techouse created this gist
May 9, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/usr/bin/env bash # This simple bash script is aimed at excluding some development specific directories. # # In this configuration it will instruct Time Machine to exclude directories named: # - env # - node_modules # - vendor # - venv # # Feel free to update to your own needs. WORK_DIR=$(pwd) EXCLUDED_DIRECTORIES=( "env" "node_modules" "vendor" "venv" ) for EXCLUDED_DIRECTORY in "${EXCLUDED_DIRECTORIES[@]}"; do find ${WORK_DIR} -maxdepth 2 -type d -name ${EXCLUDED_DIRECTORY} -prune -exec tmutil addexclusion {} \; done