whatric
V2EX  ›  macOS

如何用 Time Machine 恢复单个 App 及其数据?

  •  
  •   whatric · Oct 5, 2024 · 2774 views
    This topic created in 588 days ago, the information mentioned may be changed or developed.

    今天用 MoneyThings 记账时忽然发现余额对不上了,怀疑可能是之前误操作导致某个交易被删掉了,想通过 Time Machine 恢复到一周前的交易数据。

    1. 在 '~/Library/Application Support' 和 '/Library/Application Support' 文件夹内没有找到对应的 App 数据。

    2. 直接恢复 App 只能恢复软件本体,数据还是新的。

    还有什么办法恢复 App 的数据到一周前吗?

    11 replies    2024-10-14 21:49:58 +08:00
    shinsekai
        1
    shinsekai  
       Oct 5, 2024   ❤️ 1
    用 appcleaner 先查一下所有关联文件?
    chyiz
        2
    chyiz  
       Oct 5, 2024   ❤️ 1
    ~/Library/Containers?
    jheroy
        3
    jheroy  
       Oct 5, 2024
    启动 timemachine 可以调时间轴,调到数据还在的时间,通过 finder 进到配置文件目录拷出来就行
    jheroy
        4
    jheroy  
       Oct 5, 2024   ❤️ 1
    如果不知道配置文件位置,可以通过活动管理器,双击进程可以看到打开的文件和端口
    ihwbunny
        5
    ihwbunny  
       Oct 5, 2024
    @chyiz 靠谱
    dilidilid
        6
    dilidilid  
       Oct 5, 2024   ❤️ 1
    用 AppCleaner 看下你的 app 用到了哪些文件夹?
    eventlooped
        7
    eventlooped  
       Oct 6, 2024   ❤️ 2
    如何最小颗粒度的恢复 Notes 被删除的内容

    1. 选中 Notes 所在的目录( File > Go to folder > ~/Library/Group Containers/ > group.com.apple.notes
    2. Time Machine > Browse Time Machine Backups > 选择不同的时间点 > replace
    3. Notes 文件会按照时间线顺序,进行 icloud 同步,所以重新改变内容(建议断网,或者增量操作
    whatric
        8
    whatric  
    OP
       Oct 7, 2024
    @jheroy #4 非常感谢!我就是不清楚 App 具体使用了哪些文件,看了你的回复,使用活动管理器查看到了文件存放在'/Users/ricwang/Library/Group Containers/xxx'目录下,恢复这个文件夹就可以了。
    whatric
        9
    whatric  
    OP
       Oct 7, 2024   ❤️ 1
    @chyiz #2 非常感谢,这个位置之前没有查看,打开后发现有 App 的数据,但恢复后无效果,应该不是交易数据。最终参考了四楼 @jheroy 的回复,在'/Users/ricwang/Library/Group Containers/xxx'目录下找到了数据。
    whatric
        10
    whatric  
    OP
       Oct 7, 2024
    @shinsekai #1 @dilidilid #6
    非常感谢,Appcleaner 应该也可以查看,不过因为我没有安装,所以参考四楼,用了活动监视器查到了 App 相关数据的位置。
    laris
        11
    laris  
       Oct 14, 2024
    appcleaner 是什么原理?可以查找所有相关文件?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.