{
  "id": "tmutil",
  "name": "tmutil",
  "description": "Time Machine utility for macOS.",
  "executables": [
    "tmutil"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Time Machine",
    "description": "Start backups, list backups and manage exclusions and local snapshots. Destination setup and restore are left out.",
    "quality": "ai-draft",
    "base": "fig:tmutil",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "startbackup"
        ],
        "label": "Start a backup",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "auto",
            "label": "Scheduled-like mode",
            "type": "boolean",
            "option": [
              "--auto",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "block",
            "label": "Wait until finished",
            "type": "boolean",
            "option": [
              "--block",
              "-b"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "rotation",
            "label": "Allow destination rotation",
            "type": "boolean",
            "option": [
              "--rotation",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "destination",
            "label": "Destination ID",
            "type": "string",
            "option": [
              "--destination",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "backup",
            "label": "Back up now",
            "fields": [
              "block",
              "destination"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "block",
              "auto",
              "rotation",
              "destination"
            ]
          }
        ]
      },
      {
        "path": [
          "listbackups"
        ],
        "label": "List backups",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "destination",
            "label": "Destination volume",
            "type": "string",
            "option": [
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "mount",
            "label": "Mount backups",
            "type": "boolean",
            "option": [
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "timestamps",
            "label": "Timestamps only",
            "type": "boolean",
            "option": [
              "-t"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List backups",
            "fields": [
              "destination",
              "timestamps"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "destination",
              "mount",
              "timestamps"
            ]
          }
        ]
      },
      {
        "path": [
          "addexclusion"
        ],
        "label": "Exclude from backups",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "items",
            "label": "Items",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "fixed_path",
            "label": "Fixed-path exclusion",
            "type": "boolean",
            "option": [
              "-p"
            ],
            "description": "Requires root.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "volume",
            "label": "Volume exclusion",
            "type": "boolean",
            "option": [
              "-v"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "exclude",
            "label": "Exclude items",
            "fields": [
              "items",
              "fixed_path"
            ],
            "required": [
              "items"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "items",
              "fixed_path",
              "volume"
            ]
          }
        ]
      },
      {
        "path": [
          "isexcluded"
        ],
        "label": "Check exclusion",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "items",
            "label": "Items",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "check",
            "label": "Check items",
            "fields": [
              "items"
            ],
            "required": [
              "items"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "items"
            ]
          }
        ]
      },
      {
        "path": [
          "listlocalsnapshots"
        ],
        "label": "List local snapshots",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "mount",
            "label": "Mount point",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List snapshots",
            "fields": [
              "mount"
            ],
            "required": [
              "mount"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "mount"
            ]
          }
        ]
      },
      {
        "path": [
          "deletelocalsnapshots"
        ],
        "label": "Delete local snapshots",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmutil.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Mount point or snapshot date",
            "type": "string",
            "position": 0,
            "effect": "delete",
            "description": "Deletes local snapshots.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "delete",
            "label": "Delete snapshots",
            "fields": [
              "target"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target"
            ]
          }
        ]
      }
    ]
  }
}
