6 ms·
Restoring MacOS device from a snapshot with APFS (2017)
- carlob 9y agosudo tmutil snapshot Is this what time machine automatically does every hour? Or is it a different feature? Is this the local one or the one on a remote disk?
- carlob 9y agoI'm gonna answer these myself. Apparently sudo tmutil snapshot is the local snapshot, not the remote backup and it has existed as a verb since way before APFS existed. So now I guess the question is: did the implementation of local snapshots change with APFS?
- thought_alarm 9y agoYes. They talked about APFS and the new local Time Machine implementation at WWDC. You can view the dates of your local snapshots dates with: tmutil listlocalsnapshotdates / I have one from last week, two from yesterday, and two from today.
- mrpippy 9y agoYes, I'm pretty sure it did. I seem to remember one of the APFS sessions at WWDC (either 2016 or 2017) had a demo about how local TM snapshots used to work (really kind of a hack), and how APFS would improve the situation dramatically.
- rconti 9y agoDoes anyone happen to know if the new Time Machine backups are automagically better (upgraded), or should I start over with a fresh backup destination?
- thought_alarm 9y agoThe new implementation only applies to local time machine backups. Backups to external drives have not changed.
- deleted 9y ago[deleted]
- ssalazars 9y agoIs there a way to move this backup to any other storage mechanism, say Dropbox?
- Alex3917 9y agoAs a warning, in the last few years Apple has basically switched to doing placebo backups that don't actually backup all of your data. If you ever need to actually restore from a backup, don't expect your device to be in anywhere near the same state as it was in before you restored, but rather expect lots and lots of data to get lost forever.
- lbotos 9y agocan you elaborate on this, and or share more info? What gets missed and why?
- Alex3917 9y agoIf you backup your iPhone, apps and their data don't actually get backed up. Instead, your computer just stores a list of the apps installed and where the icons were, and app data only gets backed up if the developers have used special APIs or whatever to opt-in to having the app's data be part of the backup process. This is why even if you are making encrypted backups of your phone, which Apple claims are full backups that store passwords and everything, your Google Authenticator data will be completely gone when you restore. So if you thought that, for example, there would be no reason to store the 16 digit codes 2FA codes as long as you had a multiple backups of your phone, what happens is that you just get locked out of every single website you use for a month. It also means that if an app is no longer in the app store, there is no way to get that app back even if it would otherwise still work on your phone. If you look at the text of how the backup process is described in iTunes, they are clearly claiming that a full backup of the phone is getting made, and yet in reality nothing could be further from the truth. It's amazing there aren't multiple billion-dollar class action lawsuits currently pending on this issue. https://imgur.com/a/6pVBn https://imgur.com/a/6pVBn
- cstross 9y agoThis is a discussion of backup/restore using APFS snapshots on macOS (Sierra and High Sierra). You appear to be talking about iOS. Not. The. Same. OS.
- kstrauser 9y agoNon-AMP link: https://maclovin.org/blog-native/2017/restoring-from-a-snapshot-with-apfs https://maclovin.org/blog-native/2017/restoring-from-a-snaps...
- orf 9y agoFunnily enough I used this four hours ago. It was really quite fast, I had geared myself up for a multi-hour restore.
- _jomo 9y agoA couple weeks ago, a macOS update broke and sort of bricked the OS. I wasn't able to fix it, so I decided to restore from a backup, but didn't have access to my Time Machine backups when I discovered you could restore from local APFS snapshots. The snapshot was restored really fast, but the OS was still broken. I guess APFS snapshots exclude a number of files (as the remote time machine backups do). It was also when I discovered you can reinstall macOS without losing any data.
- eridius 9y agoAFAIK APFS's snapshots will snapshot the whole drive, so it shouldn't exclude anything.
- _jomo 9y agoSo I thought, but the restore not fixing the issue made me think.
- walterbell 9y agoDid the reinstall fix the issue? Since the reinstall preserves user data, is there any chance of malware re-inserting itself after the OS has been reinstalled?
- _jomo 9y agoYes, a reinstall fixed it. And yes, persistent malware should be possible (unless you format your disk).
- pilsetnieks 9y agoOr if the malware lives in the disk controller firmware in which case even formatting the disk won't help.
- walterbell 9y ago
- Gys 9y ago'APFS now support snapshots, a feature users of Virtual Machines love and can barely live without!' Why is this especially useful for VM lovers ?
- hamandcheese 9y agoI don't think its "especially useful" for them, just the most likely place end users are exposed to snapshots.
- wila 9y agoYes ^^ this ^^, virtual machines have been a good way to learn how useful and easy snapshots are. With APFS snapshots have come to the hardware level and that is really exciting. But beware that this is not a backup. If you loose your main disk then you still might have lost your data. Time machine can help very well here. Regular TM backups are a good way of protecting yourself against data loss. Unless.. we're talking VMs again. In that particular scenario it turns out that VMs and Time Machine do not go that well together. VMware even advices you to exclude your virtual machines from VMs [0] and [1]. The problem is that your VM consists of large binary files that change over time. If TM makes a backup it will always see your VM as changed and start copying the virtual disk files. Problem is that if the machine is running that the risk is high that you end up with corrupt virtual disks in your time machine. Another problem is that if your TM backup storage runs out of storage space. TM can delete part of your virtual disks. Another problem is that with VMs you run out of disk space really quick. Anyways I'm getting off topic. Probably because I wrote Vimalin [2] to backup VM's for VMware Fusion and counter the VM backup issues ;) [0] https://kb.vmware.com/kb/1013628 https://kb.vmware.com/kb/1013628 [1] https://docs.vmware.com/en/VMware-Fusion/10.0/com.vmware.fusion.using.doc/GUID-644C040A-0831-483F-9A06-EE970C2F9FF6.html https://docs.vmware.com/en/VMware-Fusion/10.0/com.vmware.fus... [2] https://www.vimalin.com https://www.vimalin.com
- walterbell 9y agoHow does Vimalin backup in-use virtual disks, or deal with the large binary files that have only small differences?
- synaesthesisx 9y agoAnyone know how large the local snapshots are? Just curious...
- kstrauser 9y agoThey're copy-on-write, so they start off as being just however large the metadata objects describing them are. Think in the neighbor of KB, not GB. The snapshot will then grow at the rate you delete or modify local files. Conceptually, your drive now has to hold the "before" and "after" versions of its state.