Hi EsTaF,
I took a look at the mount_apfs command and figured out the correct syntax to mount the APFS snapshots!
Let's assume that I have a Time Machine backup store on an APFS volume named "Strawberry", and the volume is mounted at /Volumes/Strawberry. To mount a snapshot named com.apple.TimeMachine.2021-11-23-120928.backup (which resides on Strawberry) at the (pre-existing) directory /tmp/mySnap, use this command:
mount_apfs -s com.apple.TimeMachine.2021-11-23-120928.backup /Volumes/Strawberry /tmp/mySnap
In short (after -s):
- First: Name of the snapshot you want to mount
- Second: Mountpoint of the (already mounted) Time Machine backup volume (the live APFS volume that contains the desired snapshot)
- Third: Directory on which the snapshot should be mounted to
Also, for APFS Time Machine backup drives, there is an easier way to browse snapshots: Simply navigate to the live backup volume in Finder. You'll notice that a lot of disk icons appear inside. Opening any of those will mount the corresponding snapshot and let you view its contents.
If you want to mount a local snapshot (a temporary APFS snapshot of your internal Data volume), try the below instead. This example assumes that the local snapshot is named com.apple.TimeMachine.2021-11-20-115813.local, and I'm trying to mount it at the (pre-existing) directory at /tmp/mySnap:
mount_apfs -s com.apple.TimeMachine.2021-11-20-115813.local /System/Volumes/Data /tmp/mySnap
Hope this helps!
EDIT: Fixed a few things.