tmutil
Time Machine utility
Subcommands
Name | Description |
---|---|
version | Print the current version |
enable | Turn on automatic backups (required root + full disk access) |
disable | Turn off automatic backups (required root + full disk access) |
startbackup | Begin a backup if one is not already running |
stopbackup | Cancel a backup currently in progress |
delete | Deletes backups with the specified timestamp from the backup volume mounted at the given mountpoint |
deleteinprogress | Delete all in-progress backups for a machine directory |
restore | Restore the item `source`, which is inside a backup, to the location `destination`. Same semantics as `cp` |
compare | Perform a backup diff |
setdestination | Configure a local HFS+ or APFS volume, AFP share, or SMB share as a backup destination (requires root + Full Disk Access) |
removedestination | Remove the destination with the specified unique identifier from the Time Machine configuration (requires root + Full Disk Access) |
destinationinfo | Print information about destinations currently configured for use with Time Machine |
addexclusion | Configure an exclusion that tells Time Machine not to backup a file, directory, or volume during future backups |
removeexclusion | Configure Time Machine to backup a file, directory, or volume during future backups |
isexcluded | Determine if a file, directory, or volume are excluded from Time Machine backups |
inheritbackup | Claim a machine directory or sparsebundle for use by the current machine |
associatedisk | Bind a volume store directory to the specified local disk, thereby reconfiguring the backup history (requires root + Full Disk Access) |
latestbackup | List this computer's latest completed backup |
listbackups | List all of this computer's completed backups |
machinedirectory | Print the path to the current machine directory for this computer |
calculatedrift | Analyze the backups in an HFS machine directory and determine the amount of change between each |
uniquesize | Analyze the specified path in an HFS+ backup or path to an APFS backup and determine its unique size |
verifychecksums | Compute a checksum of data contained within a backup and verify the results against checksum information computed at the time of backup |
localsnapshot | Create new local Time Machine snapshots of all APFS volumes included in the Time Machine backup |
listlocalsnapshots | List local Time Machine snapshots of the specified volume |
listlocalsnapshotdates | List the creation dates of all local Time Machine snapshots |
deletelocalsnapshots | Delete all local Time Machine snapshots on all mounted disks for the specified date or on the given disk |
thinlocalsnapshots | Think local Time Machine snapshots for the specified volume |