n8blog
distraction in action

Like my work? Check out HexaLex, my game for iPhone & iPod Touch. It's a crossword game like Scrabble, but played with hexagonal tiles. http://www.hexalex.com

Oh Mama! Another Backup Bouncer post! You might think that I, the author of Backup Bouncer, the crusader for end-user verification of backup tools, would have run BB on Time Machine at some point. If so, you have seriously underestimated my laziness. But this morning I got an e-mail from a user asking for help testing TM with BB, and this finally spurred me to do the test myself.

Here’s how you test Time Machine with Backup Bouncer:

$ mkdir ~/bb
# We need to trick BB into thinking this is a volume it created
$ touch ~/bb/bbouncer-vol
$ sudo bbouncer create ~/bb
# Now do a Time Machine backup and wait till it's done
$ mv ~/bb ~/bb-orig
# Now restore the ~/bb directory from Time Machine.  
# Try not to catch SPACE MADNESS!!!
$ bbouncer verify -d ~/bb-orig ~/bb

On my Leopard 10.5.3 machine here’s what I get with BB 0.1.3:

Verifying:    basic-permissions ... ok (Critical)
Verifying:           timestamps ... ok (Critical)
Verifying:             symlinks ... ok (Critical)
Verifying:    symlink-ownership ... FAIL 
Verifying:            hardlinks ... FAIL (Important)
Verifying:       resource-forks ... 
   Sub-test:             on files ... ok (Critical)
   Sub-test:  on hardlinked files ... FAIL (Important)
Verifying:         finder-flags ... ok (Critical)
Verifying:         finder-locks ... ok 
Verifying:        creation-date ... ok 
Verifying:            bsd-flags ... FAIL 
Verifying:       extended-attrs ... 
   Sub-test:             on files ... ok (Important)
   Sub-test:       on directories ... ok (Important)
   Sub-test:          on symlinks ... ok 
Verifying: access-control-lists ... 
   Sub-test:             on files ... ok (Important)
   Sub-test:              on dirs ... ok (Important)
Verifying:                 fifo ... FAIL 
Verifying:              devices ... FAIL 
Verifying:          combo-tests ... 
   Sub-test:  xattrs + rsrc forks ... ok 
   Sub-test:     lots of metadata ... ok 

The only annoyance is that hardlinks aren’t preserved, but that’s not surprising considering the way hardlinks are used internally by TM to prevent wasted space. (I should point out that the hardlink failure here is not the same as the Apple rsync one I mentioned earlier today, and it’s not nearly as bad.) These results are not perfect but I would have no problem recommending TM backups to any less-than-hardcore user.

  • Share/Bookmark

  Comments:

1. flo replies:

Hey, currently testing online backup services (only mozy and backblaze cause they allow monthly payment and are the only ones with affordable prices)
This is backblaze:
./bbouncer verify ~/bb ~/bb-backblaze
Verifying: basic-permissions … FAIL (Critical)
Verifying: timestamps … FAIL (Critical)
Verifying: symlinks … stat: ./symlink1: stat: No such file or directory
FAIL (Critical)
Verifying: symlink-ownership … FAIL
Verifying: hardlinks … FAIL (Important)
Verifying: resource-forks … FAIL (Critical)
Verifying: finder-flags … FAIL (Critical)
Verifying: finder-locks … FAIL
Verifying: creation-date … FAIL
Verifying: bsd-flags … ls: ./dir-with-flags: No such file or directory
FAIL
Verifying: extended-attrs … FAIL (Important)
Verifying: access-control-lists … ls: ./acl-test-dir: No such file or directory
FAIL (Important)
Test dir ‘/Users/florian/bb-backblaze/90-fifo’ does not exist
Test dir ‘/Users/florian/bb-backblaze/95-devices’ does not exist
Verifying: combo-tests … FAIL

Not too good, although I didn’t expect it to pass most tests, because it is not meant for bare metal restore or anything like that (for example it will backup Library but not most other System directories) but I’d say it should at least support xattrs and retain dates etc.

2. n8 replies:

Ooh, perfect FAIL! Impressive! I guess these online backup services are really only focused on preserving data, not metadata. That’s a shame, though, since losing basic permissions can cause all kinds of problems. But if you just want to make sure you don’t lose your Word and Excel documents I guess this result is OK.

3. Gleb Budman replies:

Thanks flo for running the test. It appears you ran this with the beta version of our service. We launched the service publicly on 4/14/09 (about a month after your test) and added support for resource forks, dates, etc. However, Backblaze is a DATA backup service, not a disk imaging tool, and thus does not keep some of the components you mention.

We backup all of the photos, music, documents, etc. for users.

Gleb Budman
CEO, Backblaze

4. Warren replies:

FYI, I just retested the current version of backblaze (1.0.6.238) with backup-bouncer and here are the results:

./bbouncer verify -d /Volumes/Src ~volz/Downloads/Src
Verifying: basic-permissions ... FAIL (Critical)
Verifying: timestamps ... FAIL (Critical)
Verifying: symlinks ... stat: ./symlink1: stat: No such file or directory
FAIL (Critical)
Verifying: symlink-ownership ... FAIL
Verifying: hardlinks ... FAIL (Important)
Verifying: resource-forks ...
Sub-test: on files ... ok (Critical)
Sub-test: on hardlinked files ... FAIL (Important)
Verifying: finder-flags ... FAIL (Critical)
Verifying: finder-locks ... FAIL
Verifying: creation-date ... FAIL
Verifying: bsd-flags ... stat: ./dir-with-flags: stat: No such file or directory
FAIL
Verifying: extended-attrs ...
Sub-test: on files ... FAIL (Important)
Sub-test: on directories ... FAIL (Important)
Sub-test: on symlinks ... FAIL
Verifying: access-control-lists ...
Sub-test: on files ... FAIL (Important)
ls: ./acl-test-dir: No such file or directory
Sub-test: on dirs ... FAIL (Important)
Test dir '/Users/volz/Downloads/Src/90-fifo' does not exist
Test dir '/Users/volz/Downloads/Src/95-devices' does not exist
Verifying: combo-tests ...
Sub-test: xattrs + rsrc forks ... FAIL
Sub-test: lots of metadata ... FAIL

Looks like resource forks on files are now supported, but otherwise no other improvements. Why on earth wouldn’t they save timestamps, finder flags, and extended-attrs is confusing. It’s not like this adds much overhead to the stored data.

5. Dave replies:

CrashPlan has never failed to restore correctly in my case, including those pesky Eudora files. I haven’t tested it with backup bouncer yet but that’s the next step.

[...] Bestandsrechten en metadata verdwijnen, zie backup-bouncer resultaten van backblaze: http://www.n8gray.org/blog/2008/06/0…-time-machine/ [...]

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Please type this word with the letters reversed: live

Like my work? Check out HexaLex, my game for iPhone & iPod Touch. It's a crossword game like Scrabble, but played with hexagonal tiles. http://www.hexalex.com