samuelmeuli/tmignore
概要
🕔 開発用ファイルをTime Machineのバックアップ対象から除外します。
システム・インフラ計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルtmignore
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.
関連プロジェクトを探す
読み込み中…