2020-12-29 11:43:22 +00:00
|
|
|
# tmutil
|
|
|
|
|
|
|
|
> Utility for managing Time Machine backups. Most verbs require root privileges.
|
|
|
|
> More information: <https://ss64.com/osx/tmutil.html>.
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Set an HFS+ drive as the backup destination:
|
2020-12-29 11:43:22 +00:00
|
|
|
|
|
|
|
`sudo tmutil setdestination {{path/to/disk_mount_point}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Set an APF share or SMB share as the backup destination:
|
2020-12-29 11:43:22 +00:00
|
|
|
|
2022-02-14 11:21:43 +00:00
|
|
|
`sudo tmutil setdestination "{{protocol://user[:password]@host/share}}"`
|
2020-12-29 11:43:22 +00:00
|
|
|
|
|
|
|
- Append the given destination to the list of destinations:
|
|
|
|
|
|
|
|
`sudo tmutil setdestination -a {{destination}}`
|
|
|
|
|
|
|
|
- Enable automatic backups:
|
|
|
|
|
|
|
|
`sudo tmutil enable`
|
|
|
|
|
|
|
|
- Disable automatic backups:
|
|
|
|
|
|
|
|
`sudo tmutil disable`
|
|
|
|
|
|
|
|
- Start a backup, if one is not running already, and release control of the shell:
|
|
|
|
|
|
|
|
`sudo tmutil startbackup`
|
|
|
|
|
|
|
|
- Start a backup and block until the backup is finished:
|
|
|
|
|
|
|
|
`sudo tmutil startbackup -b`
|
|
|
|
|
|
|
|
- Stop a backup:
|
|
|
|
|
|
|
|
`sudo tmutil stopbackup`
|