用 tmutil 设置 Time Machine 备份目标盘
直接在命令行为时间机器指定备份磁盘,或添加第二块轮换备份盘。
运行 `sudo tmutil setdestination -a /Volumes/BackupDisk` 添加备份目标,用 `tmutil destinationinfo` 查看当前配置。
01命令
命令
$ sudo tmutil setdestination -a /Volumes/BackupDisk02作用说明
tmutil setdestination 接受已挂载卷路径、AFP/SMB 地址或 APFS 共享;不带 `-a` 会替换唯一目标,带 `-a` 则加入轮换组。`tmutil destinationinfo` 会列出每个目标的 UUID,把 UUID 传给 removedestination 即可移除某个目标。批量配置多台 Mac 时,这是最常用的脚本化方式。
03风险
!注意: 目标盘上已有的其他 Mac 备份会保留,新备份直接追加,不会删除旧数据。
04撤销
撤销
$ sudo tmutil removedestination <destination-uuid>05来源
- TCP and UDP ports used by Apple software products - Apple Support依据: Reference for network ports Time Machine uses when backing up over the network to a destination.
- TMUTIL Command: macOS Time Machine utility依据: Documents setdestination (with -a to add a second destination), removedestination, and destinationinfo subcommands.
最后验证: 2026-09-17 · 分类: 系统与设置