如何停止 Spotlight 索引网络 Time Machine 备份?

Ale*_*nov 6 spotlight time-machine osx-lion macos

我的 Time Machine 备份到连接到我的 Airport Extreme 的硬盘上。升级到 Lion 后,我注意到该mds进程(Spotlight 索引器)时不时地以 100% 的 CPU 运行。一个简单的文件活动检查告诉我它正在尝试索引我的 Time Machine 备份。

我已经将 Time Machine 磁盘添加到 Spotlight 设置中的隐私列表中,这应该是将磁盘从 Spotlight 索引中排除,但遗憾的是,Spotlight 有时仍会尝试对其进行索引。是 Lion 中的错误还是我遗漏了什么?

Taf*_*afT 7

有一个命令行选项小麦;

$ mdutil 
Usage: mdutil -pEsa -i (on|off) -d volume ...
    Utility to manage Spotlight indexes.
    -p             Publish metadata.
    -i (on|off)    Turn indexing on or off.
    -d             Disable Spotlight activity for volume (re-enable using -i on).
    -E             Erase and rebuild index.
    -s             Print indexing status.
    -a             Apply command to all volumes.
    -V vol         Apply command to all stores on the specified volume.
    -v             Display verbose information.
NOTE: Run as owner for network homes, otherwise run as root
Run Code Online (Sandbox Code Playgroud)

所以在 Mac 上你需要:

$you@yourmac: mdutil -d /Volumes/YOURDRIVE [enter]
$you@yourmac: mdutil -E /Volumes/YOURDRIVE [enter]
Run Code Online (Sandbox Code Playgroud)

然后您需要重新启动(在某些情况下,在 Mac 重新启动之前,索引编制似乎不会停止)。第一行将禁用索引,第二行应删除该驱动器的所有索引。