News for hackers. Stuff that matters.
Re:Apple File System by rbanffy on Monday June 13, 2016 @04:04PM (#11897068)
Copy-on-write and snapshots are excellent building blocks for Time Machine, so much in fact that, when it was announced, I suspected it was because of ZFS (which, at the time, was being considered for OSX). It's very likely TM will be adapted to work on it (with about 20 lines of code)
Re:Apple File System by feelix on Monday June 13, 2016 @07:28PM (#11898610)
It's long overdue, but having spent months developing an implementation of bootable snapshots on os x that works with HFS+, (http://macdaddy.io/mac-backup-software/) this kind of stings.
Re:Apple File System by 0942v8653 on Monday June 13, 2016 @04:09PM (#11897123)
I'm not sure about snapshots, TM is made to work by just copying the directory structure over, and each backup is a fully functioning hierarchy. But cloning is definitely a big deal.
Re:Apple File System by lobster_johnson on Monday June 13, 2016 @05:59PM (#11898072)
Time Machine uses hard links to create a duplicate directory structure without duplicating all the files themselves; only changed files need to be copied.

As I recall, HFS+ was explicitly modified to support directory hard links, which is less common in the Unix world, explicitly to support this feature.

TM also maintains a folder called /.MobileBackups to store temporary backups while your backup drive isn't connected. OS X also maintains /.fseventsd, a log of file system operations that TM can use to perform the next incremental, instead of having to compare each file for modifications.

Re:Apple File System by cmsj on Monday June 13, 2016 @04:18PM (#11897225)
it doesn't "just" copy the directory structure over each time, it creates the structure for each backup, any files that are changed get copied in, ones that haven't changed are just hardlinked to the existing copies.
Re:Apple File System by rbanffy on Tuesday June 14, 2016 @08:33AM (#11901570)
A snapshot is a copy of the file (and its blocks) at a given point in time. Subsequent writes to it will happen to new blocks, leaving the ones connected to the snapshot undisturbed.
Re:Apple File System by ysleepy on Monday June 13, 2016 @04:25PM (#11897275)
Well, consistency is important too in backups. So TM will probably make a snapshot and do the backup from there. Avoiding moved files from later dirs to already processed ones etc.