外づけディスクをマウントする度に,TimeMachine で使うかどうかを 尋ねられるのはうっとおしい
I have the same issue, working with a lot of different hard drives every day. I figured that it had to do with a launch daemon and in /System/Library/LaunchDaemons/ there is a file called "com.apple.backupd-attach.plist". I think this is what controls the time machine function when a new volume is launched. I opened the file with Property List Editor and there is a toggle for on/off. I disabled it, and the next time I mounted a volume it didn't ask me about time machine, but it also didn't let me eject the volume. Haven't quite figured that one out yet, but I thought I would post what I found to see if anyone else had an insight.
/System/Library/LaunchDaemons/com.apple.backupd-attach.plist
はテキストファイルなので,これを編集する.
->ダメだった.
これはどう? http://www.macosxhints.com/article.php?story=20080114082057330
sudo defaults write /Library/Preferences/com.apple.TimeMachine \ DoNotOfferNewDisksForBackup -bool YES
で再起動で O.K. だった.
$ sudo chgrp admin /System/Library/CoreServices/Menu\ Extras/TimeMachine.menu $ sudo chmod 750 /System/Library/CoreServices/Menu\ Extras/TimeMachine.menu
初回ログイン時にユーザ環境をつくるようにしている環境で, Dock の登録アプリケーションに強制的に TimeMachine が追加されることがある.
この場合は,テンプレートに
Library/Preferences/loginwindow.plist
を加えておく. 中身は,いづれかのユーザのものをコピーすればいい.
これは, AppStore でも同じ.
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
TimeMachine の機能はコマンド tmutil で行うことができる.
内部コマンド | はたらき |
compare | 2つのスナップショットを比較 |
enable | タイムマシンを有効化 |
enablelocal | ローカルスナップショットを開始 |
disable | ライムマシンを無効化 |
disablelocal | ローカルスナップショットを停止 |
latestbackup | 最新のスナップショットを表示 |
listbackups | スナップショットを一覧 |
snapshot | ローカルスナップショットの作成 |
startbackup | (外付け HDD への)バックアップ作業を開始 |
stopbackup | バックアップ作業を強制停止 |
$ tmutil calculatedrift `tmutil machinedirectory`
$ sudo tmutil delete /Volumes/***/Backups.backupd/****/YYYY-MM-DD-SSSSSS
$ cd `tmutil machinedirectory` $ tmutil compare YYYY-MM-DD-SSSSSS yyyy-mm-dd-ssssss
$ tmutil compare
マシン交換などで本体が変わった場合に,バックアップを引き継ぐ.
$ sudo tmutil inheritbckup /Volumes/***/Backups.backupdb/****