LoginSignup
10
5

More than 5 years have passed since last update.

Time Machineのバックアップ対象からnode_modules等の開発依存コードを除外する

Last updated at Posted at 2018-11-30

yarnでアップデートするたびに、Time Machineが張り切ってバックアップしちゃって困ってたんだけど、
これ使えば手軽に抑制できそうだ。

stevegrunwell/asimov: Automatically exclude development dependencies from Apple Time Machine backups - https://github.com/stevegrunwell/asimov

インストール

git clone git@github.com:stevegrunwell/asimov.git
cd asimov.git
./install.sh

実行結果

./install.sh
Symlinking /Users/hoge/src/github.com/stevegrunwell/asimov to /usr/local/bin/asimov

Asimov daemon has been loaded!

Finding dependency directories with corresponding definition files...

(省略)

- /Users/hoge/src/github.com/MyApp/***/node_modules is already excluded, skipping.
- /Users/hoge/src/github.com/MyApp/***/node_modules has been excluded from Time Machine backups (773M).
- /Users/hoge/src/github.com/MyApp/***/node_modules is already excluded, skipping.
- /Users/hoge/src/github.com/MyApp/***/vendor has been excluded from Time Machine backups (8.0K).
- /Users/hoge/src/github.com/MyApp/***/.vagrant has been excluded from Time Machine backups ( 32K).
10
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
5