Как обнаружить машину времени?

Мне нужно отличать раздел жесткого диска, который используется для машины времени, от других обычных разделов. Есть ли API для определения раздела/тома машины времени?


person John Crane    schedule 28.02.2014    source источник


Ответы (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. 
person Darrick Herwehe    schedule 28.02.2014