command line – Learn how to restore a selected file from APFS Time Machine backup drive with tmutil?

on

|

views

and

comments


I have been utilizing an HFS+ drive for Time Machine, however I lately formatted a drive in APFS as my Time Machine backup drive on macOS Monterey. Now I discover the implementation with APFS very complicated.
If I checklist issues on the foundation listing of the drive with ls, the outcomes are as follows:

.fseventsd
.Highlight-V100
2022-12-03-020353.earlier
backup_manifest.plist

And upon additional inspection, 2022-12-03-020353.earlier solely accommodates the most recent model of information, older backups should not seen. On an HFS+ TM backup drive, there needs to be a Backups.backupdb that accommodates all of the backups with timestamps, which to my understanding is now not the case for APFS since Large Sur. Now if I do tmutil listbackups, I nonetheless get a listing of backup timestamps immediately, which appears to be like like the next, although I do not know what to do with them:

……
2022-12-02-151624.backup
2022-12-02-171818.backup
2022-12-03-000232.backup
2022-12-03-020353.backup

From what I discovered on-line, the older backups are saved as APFS snapshots, the query is although, how do I restore particular information from them? I imply, with out the Time Machine GUI, however within the command line with tmutil? On HFS+ drives I can merely do tmutil restore /Volumes/TM/Backups.backupdb/<timestamp>/Macintosh HD/<src> <dst>, how do I do the identical factor with an APFS drive? Do I have to mount a selected snapshot first earlier than restoring? How to do this within the command line with timestamps gathered by tmutil listbackups? As a result of ready for snapshots for the backup laborious drive to seem in Disk Utility.app takes without end.

Apologies if this has been requested earlier than, however engines like google have not been variety to me, all I may discover about APFS TM backups had been about native snapshots and deleting a backup by timestamp.

Share this
Tags

Must-read

Constructing the Torc Driverless Security Case

At Torc, we’ve structured our security case on three foundational pillars: Engineer It to Be Secure, Function It to Be Secure, and the...

What’s DL+S? Unlocking the Huge Information Required to Develop Autonomous Vans

Breakthroughs in AI for autonomous driving don't occur in isolation. They occur when information, simulation, machine studying, infrastructure, and car testing work as...

Why I can’t wait to get right into a driverless automotive | Self-driving automobiles

Adrian Chiles (Driverless automobiles are taking us on a street to nowhere, 10 September) needs to know who requested for driverless automobiles. I...

Recent articles

More like this

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here