【问题标题】:How to detect time machine?如何检测时间机器?
【发布时间】:2014-04-01 13:57:18
【问题描述】:

我需要将时间机器使用的硬盘分区与其他普通分区区分开来。 是否有检测时间机器分区/卷的 API?

【问题讨论】:

    标签: macos timemachine


    【解决方案1】:

    只要您使用 Lion 或更高版本,Apple 就会为时间机器添加一个名为 tmutil 的命令行实用程序。根据手册页,运行tmutil destinationinfo 返回以下信息:

    Name          The volume label as shown in Finder.
    Kind          Whether the destination is locally attached storage or a network device.
    URL           In the case of a network destination, the URL used for Time Machine 
                  configuration.
    Mount Point   If the volume is currently mounted, the path in the file system at which
                  it was mounted.
    ID            The unique identifier for the destination.
    
    When the -X option is provided, output will be printed in XML property list format. 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-16
      • 1970-01-01
      • 2021-04-04
      • 1970-01-01
      • 2018-06-05
      • 2011-07-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多