What is the difference between APFS Local Snapshots and Time Machine Snapshots?
I have an external disk always backing up my system, since Time Machine was launched.
Not the same disk all these years.
Catalina introduce this thing called APFS local snapshot that wastes disk space by creating backups on the main disk.
Also Catalina now split macOS into 2 partitions: Macintosh HD
and Macintosh HD - Data
.
Here is my problem:
- I have Time Machine backing up the main disk to USB disk.
- I have local snapshots being created on the main disk.
First question: macOS has these 2 partitions, Macintosh HD
and Macintosh HD - Data
, I type tmutil listlocalsnapshots /
and I see this
com.apple.TimeMachine.2020-03-18-114726.local
com.apple.TimeMachine.2020-03-18-134519.local
com.apple.TimeMachine.2020-03-18-144256.local
com.apple.TimeMachine.2020-03-18-154141.local
com.apple.TimeMachine.2020-03-18-164459.local
com.apple.TimeMachine.2020-03-19-022806.local
These are snapshots that contain data from both Macintosh HD
and Macintosh HD - Data
, right?
Second question: I am having this other error explained on another question of mine.
That local snapshot I mention, from 3 days ago, doesn't appear today when I listed the local snapshots. Probably they have been alreay erased.
Third question: these snapshots mentioned by fsck_apfs
and Disk Utility.app
are those APFS local snapshots, right?
Fourth question: When I open the Time Machine application and it shows a list of all backups Time Machine has by date, what backups am I seeing there, the ones on the external disk or these local snapshots.
Fifth question: What is the relation between these local snapshots and the backup being made to external disk?
Sixth question: If the local snapshots and the backups being made to external disks are independent, how do I rollback the disk to a previous local snapshot?
Thanks, please answer these six questions.
Solution 1:
Both are backup utilities and both offer you the ability to recover after a "catastrophic" event, but like tools in your tool box, your box wrench and your socket wrench both essentially have the same function, but have their preferred application depending on the scenario.
-
APFS snapshots are a point-in-time snapshot of your APFS file system. Your initial TM backup may be a point in time snapshot, but subsequently, it's an ongoing differential backup - only backing up what has changed.
-
APFS snapshots are only done on drives that have the APFS file system. Time Machine will back up any supported drive, APFS or not.
-
APFS are not so automatic. Yes, they are done automatically prior to an update being applied and you can script them using
launchd
orcron
, but they're generally something that gets done only before a major system change. Time Machine on the other hand, by its very nature not only runs on schedule, but runs continuously to ensure data protection. -
APFS snapshots are stored to the local APFS drive. This means that you need to have ample space to take a snapshot. TM doesn't care how full your drive is to take a backup as long as you have a target drive big enough to back it up.
-
Since APFS snapshots are only stored on disks with the APFS filesystem, when you run out of space, earlier snapshots are automatically deleted. While this is also the behavior for TM, you can easily add to your backup space by swapping out another external back up drive.
TL;DR
APFS snapshots should not be used as a method of backup because they are only point-in-time snapshots of your system. This is useful if you are about to do an update or make a change and things go sideways and you need the ability to return to a known working state.
Time Machine offers true back up capabilities because it offers more than a point-in-time backup, but an ongoing differential backup where it gives you granular control of what you back up and restore regardless of filesystem.