mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 16:06:03 +02:00
tmutil: add page (#5054)
This commit is contained in:
parent
f609506037
commit
223e095d7d
1 changed files with 36 additions and 0 deletions
36
pages/osx/tmutil.md
Normal file
36
pages/osx/tmutil.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# tmutil
|
||||||
|
|
||||||
|
> Utility for managing Time Machine backups. Most verbs require root privileges.
|
||||||
|
> More information: <https://ss64.com/osx/tmutil.html>.
|
||||||
|
|
||||||
|
- Set a HFS+ drive as the backup destination:
|
||||||
|
|
||||||
|
`sudo tmutil setdestination {{path/to/disk_mount_point}}`
|
||||||
|
|
||||||
|
- Set a APF share or SMB share as the backup destination:
|
||||||
|
|
||||||
|
`sudo tmutil setdestination {{protocol://user[:password]@host/share}}`
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue