#author("2017-07-15T18:48:13+09:00","default:tanak0to","tanak0to") RIGHT:[[Mac 関係覚え書き]] *TimeMachine の問い合わせを抑制する [#eecdf7c6] 外づけディスクをマウントする度に,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. だった. ---- *TimeMachine アイコンをメニューバーに表示しない [#j91c9e43] $ sudo chgrp admin /System/Library/CoreServices/Menu\ Extras/TimeMachine.menu $ sudo chmod 750 /System/Library/CoreServices/Menu\ Extras/TimeMachine.menu ---- *TimeMachine アイコンを Dock に追加させない [#y866fdcc] 初回ログイン時にユーザ環境をつくるようにしている環境で, Dock の登録アプリケーションに強制的に TimeMachine が追加されることがある. この場合は,テンプレートに Library/Preferences/loginwindow.plist を加えておく. 中身は,いづれかのユーザのものをコピーすればいい. これは, AppStore でも同じ. ---- *NAS を TimeMachine ボリュームとしてつかえるようにする [#o08dc8ab] defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 ---- *tmutil [#d60b775e] TimeMachine の機能はコマンド tmutil で行うことができる. **tmutil の主要な内部コマンド [#ce67abc0] |内部コマンド|はたらき|h |compare|2つのスナップショットを比較| |enable|タイムマシンを有効化| |enablelocal|ローカルスナップショットを開始| |disable|ライムマシンを無効化| |disablelocal|ローカルスナップショットを停止| |latestbackup|最新のスナップショットを表示| |listbackups|スナップショットを一覧| |snapshot|ローカルスナップショットの作成| |startbackup|(外付け HDD への)バックアップ作業を開始| |stopbackup|バックアップ作業を強制停止| **バックアップサイズを調べる [#se934639] $ tmutil calculatedrift `tmutil machinedirectory` **対象のバックアップを削除する [#nd5b12a4] $ sudo tmutil delete /Volumes/***/Backups.backupd/****/YYYY-MM-DD-SSSSSS **2つの期間のバックアップを比較する [#j9e3473d] $ cd `tmutil machinedirectory` $ tmutil compare YYYY-MM-DD-SSSSSS yyyy-mm-dd-ssssss **直前のバックアップと比較 [#h44df01f] $ tmutil compare **バックアップを引き継ぐ [#j99a8b37] マシン交換などで本体が変わった場合に,バックアップを引き継ぐ. $ sudo tmutil inheritbckup /Volumes/***/Backups.backupdb/****