TMAegisBeta
更多 macos 规则

macOS

TMA-MACOS-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-26
标签
macossystem-settings
参考
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.3.4.1 Ensure Backup Automatically is Enabled If Time Machine Is Enabled

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target macos --level 2