Update Time Machine commands

This commit is contained in:
Eitot 2016-11-12 08:04:09 +01:00
parent 71d4d627ca
commit 040f603b01

View File

@ -279,28 +279,21 @@ sudo defaults write /System/Library/Launch Daemons/com.apple.backupd-auto StartI
#### Local Backups
Whether Time Machine performs local backups while the Time Machine backup volume is not available.
```bash
# Disable
sudo tmutil disablelocal
# Status
defaults read /Library/Preferences/com.apple.TimeMachine MobileBackups
# Enable (Default)
sudo tmutil enablelocal
# Disable
sudo tmutil disablelocal
```
#### Prevent Time Machine from Prompting to Use New Hard Drives as Backup Volume
```bash
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
sudo defaults write /Library/Preferences/com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
```
#### Set Status
```bash
# Disable Local Time Machine Backups
hash tmutil &> /dev/null && sudo tmutil disablelocal
# Enable Local Time Machine Backups (Default)
hash tmutil &> /dev/null && sudo tmutil enablelocal
```
## Developer
### Vim