aodojrmgok 发表于 2016-5-18 11:01:26

Mac OSX:当Time Machine备份时禁止Spotlight

下面是一个实用的例子,用来说明如何禁止和启动Spotlight服务,他适用于OS X 10.5 Leopard系统:
它的目的是,因为在Time Machine备份数据的时候,Spotlight默认是索引所有的Volume上的数据,这样他干扰了Time Machine的备份工作,使工作变慢。
http://images.apple.com/macosx/features/images/timemachine_icon20071016.png它的用法是,把/System/Library/CoreServices/里面的backupd服务程序改名,然后用下面的script代替
mdutil -i off /Volumes/backup
./new-name-of-backupd
mdutil -i on /Volumes/backup


http://images.apple.com/macosx/features/images/finder_spotlight20071016.jpg*****************************************
Disable Spotlight during Time Machine backups
Runninga daemon every minute seems like overkill. Why not rename/System/Library/CoreServices/backupd and install a script in its place:

mdutil -i off /Volumes/backup
./new-name-of-backupd
mdutil -i on /Volumes/backup

That should turn off spotlight indexing immediately before backupd runs, and turn it back on when the backup is finished.
页: [1]
查看完整版本: Mac OSX:当Time Machine备份时禁止Spotlight