macOS
TMA-MACOS15-2.3.4.1
Ensure Backup Automatically is Enabled If Time Machine Is Enabled
中等級 2自動化macos
說明
Backup solutions are only effective if the backups run on a regular basis. The time to check for backups is before the hard drive fails or the computer goes missing. In order to simplify the user experience so that backups are more likely to occur, Time Machine should be on and set to Back Up Automatically whenever the target volume is available. Audit: Passes when Time Machine is not configured (preference not set) or AutoBackup is enabled.
檢查方式
稽核方法: Shell 指令
shell
/usr/bin/osascript -l JavaScript <<'EOS'
function run() {
let pref1 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.TimeMachine').objectForKey('AutoBackup'))
if ( pref1 == null || pref1 == 1 ) {
return("true")
} else {
return("false")
}
}
EOS- 預期輸出
true
修補方式
修補方法: 操作指南或基礎設施修補檔
Profile (preferred): com.apple.MCX.TimeMachine AutoBackup = <true/>. GUI: System Settings > General > Time Machine > Options > Set Back up frequency to Automatically <every hour/every day/every week>.
屬性
- 作業系統
- macos-15
- 標籤
- macossystem-settings
- 參考資料
- CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 2.3.4.1 Ensure Backup Automatically is Enabled If Time Machine Is Enabled
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos --level 2