samuelmeuli/tmignore
À propos
🕔 Exclut les fichiers de développement des sauvegardes Time Machine.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Originaltmignore
Time Machine on macOS is a highly useful tool for creating backups of all your files. Unfortunately for developers, it also backs up your coding project's dependencies, build output and other undesired files, which slows down the backup process and takes up storage.
tmignore excludes files and directories matched by .gitignore files from future Time Machine backups.
Install
macOS 10.13+ is required to run tmignore.
Build and install the script using Homebrew (Xcode is required):
brew install samuelmeuli/tap/tmignoreIf you want to run the script once:
tmignore runTo schedule the script to run once a day:
brew services start tmignore
Alternatively, if you don't want to build the binary yourself, you can download the compiled program on the Releases page.
Commands
run: Searches the disk for files/directories ignored by Git and excludes them from future Time Machine backupslist: Lists all files/directories that have been excluded bytmignorereset: Removes all backup exclusions that were made usingtmignore
Configuration
You can configure the behavior of tmignore by creating a configuration file at ~/.config/tmignore/config.json:
"searchPaths": Directories which should be scanned for Git repositories. Default:["~"](home directory)"ignoredPaths": Directories which should be excluded from the Git repository search. Default:["~/.Trash", "~/Applications", "~/Downloads", "~/Library", "~/Music/iTunes", "~/Music/Music", "~/Pictures/Photos\\ Library.photoslibrary"]"whitelist": Files/directories which should be included in backups, even if they are matched by a.gitignorefile. Useful e.g. for configuration or password files. Default:[]
Configuration example:
{
"searchPaths": ["~", "/path/to/another/drive"],
"whitelist": ["*/application.yml", "*/config.json", "*/.env.*"]
}
Contributing
Suggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request.
Explorer des projets similaires
Chargement…