首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何检测时光机?

如何检测时光机?
EN

Stack Overflow用户
提问于 2014-02-28 22:03:30
回答 1查看 166关注 0票数 0

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

EN

回答 1

Stack Overflow用户

发布于 2014-03-01 03:34:07

只要你使用的是Lion或更高版本,苹果就为时光机添加了一个名为tmutil的命令行实用程序。根据手册页,运行tmutil destinationinfo将返回以下信息:

代码语言:javascript
复制
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. 
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22097300

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档