tmi
tmi is a macOS utility for managing items excluded from Time Machine backups.
The main audience for tmi
are developers, but anyone is welcome to use it. The utility operates in a similiar fashion to a global ~/.gitignore
file.
Installation
Download and install using go get:
go get -u github.com/romantomjak/tmi
Usage
Create ~/.tmignore
file with one pattern per line:
cat << EOF > ~/.tmignore
# vcs
~/Projects/**/.git
# package managers
~/Projects/**/node_modules/
~/.virtualenvs
~/.cargo
~/.gem
~/.npm
EOF
📚 Patterns can be specified as either full paths to files and folders or by using wildcard characters that will be expanded following the unix pathname expansion specification.
Matched items can be manually excluded from Time Machine backups by running:
tmi scan
Alternatively, you can install an agent that will refresh the exclusion list
every 30 minutes:
tmi agent install
Contributing
You can contribute in many ways and not just by changing the code! If you have any ideas, just open an issue and tell me what you think.
Contributing code-wise - please discuss larger changes via an issue before submitting a pull request. Otherwise, fork the repository and submit a pull request!
License
GNU General Public License 3.0