![如果备份卷不再可用,如何重置 TimeMachine 以删除备份历史记录?](https://linux22.com/image/1593587/%E5%A6%82%E6%9E%9C%E5%A4%87%E4%BB%BD%E5%8D%B7%E4%B8%8D%E5%86%8D%E5%8F%AF%E7%94%A8%EF%BC%8C%E5%A6%82%E4%BD%95%E9%87%8D%E7%BD%AE%20TimeMachine%20%E4%BB%A5%E5%88%A0%E9%99%A4%E5%A4%87%E4%BB%BD%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95%EF%BC%9F.png)
我的病毒应用程序在备份中发现了病毒。我格式化了备份卷,因此备份不再存在。但是它仍然存在于 Time Machine 的历史记录中。tmutil delete
失败,因为它找不到备份。我需要清除 Time Machine 历史记录。我该如何实现?
答案1
首先列出本地快照:
sudo tmutil listlocalsnapshots
这将输出(例如):
com.apple.TimeMachine.2019-06-05-112020
com.apple.TimeMachine.2019-06-05-122034
com.apple.TimeMachine.2019-06-05-135447
com.apple.TimeMachine.2019-06-05-201511
com.apple.TimeMachine.2019-06-05-224434
com.apple.TimeMachine.2019-06-06-000729
com.apple.TimeMachine.2019-06-06-010257
com.apple.TimeMachine.2019-06-06-043819
com.apple.TimeMachine.2019-06-06-081034
com.apple.TimeMachine.2019-06-06-095111
然后按日期逐个删除:
sudo tmutil deletelocalsnapshots 2019-06-05-122034