概要 MacOSX側でファイルの変更(作成・変更・削除)があった場合、それを検知し、別のPC(サーバ)と同期する。 ファイルはMac側とサーバ側の両方に実体として残る。 バックアップ、ログなども取れるが、今回は使用しない。 メリット 容量が事実上無制限 デメリット ファイル数が増えると遅くなる 複数PCを同期し続けたい場合、サーバを常時立てておく必要がある 仕組み Macのログイン時にスクリプトを起動する スクリプト内でfswatchというコマンドを用いてファイル変更を監視する ファイルの変更があった場合、unisonというコマンドで同期する unison unisonとはファイル双方向同期用のコマンドである。 rsyncなどとは異なり、コピー元、コピー先という指定はない。 その代わりに、クライアントとサーバのファイルを両方共見て、更新が新しい方のファイルを両方に上書きする。 (もちろん設