Aurora0
V2EX  ›  macOS

macos 14 如何从所有的时间机器备份中删除一个文件或文件夹

  •  
  •   Aurora0 · Jan 4, 2024 · 1663 views
    This topic created in 873 days ago, the information mentioned may be changed or developed.

    sudo tmutil delete -d /Volumes/TimeMachine -t 2023-12-31-201608 -p /private/var/db

    但是 -p 只对 HFS 备份生效,这个命令删除了我的整个备份

    man tmutil
    delete [-d backup_mount_point -t timestamp] [-p path]
        Deletes the backups with the specified timestamp from the backup volume mounted at the specified mountpoint. The -t option followed by a timestamp can be used multiple
        times to specify multiple backups to delete. For HFS backup disks, a specific path to delete can also be specified using the -p option. This verb can delete items from
        backups that were not made by, or are not claimed by, the current machine. Requires root and Full Disk Access privileges.
    
    3 replies    2024-01-04 15:37:37 +08:00
    MasterCai
        1
    MasterCai  
       Jan 4, 2024 via iPhone
    tm 的文件系统不是 read only 吗?之前试过类似的事情,没成功,应该只能整个删除
    Aurora0
        2
    Aurora0  
    OP
       Jan 4, 2024
    MasterCai
        3
    MasterCai  
       Jan 4, 2024 via iPhone
    这样啊,我是直接从 finder 打开之后,尝试删除失败的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 05:20 · PVG 13:20 · LAX 22:20 · JFK 01:20
    ♥ Do have faith in what you're doing.