Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Auto backup to local, encrypted sparsebundle fails but manual backup works?

I configured Time Machine to back up to an encrypted sparsebundle using the instructions described here: http://forums.macrumors.com/showthread.php?t=434960 I was happy to see that the instructions worked beautifully for Snow Leopard and the initial Time Machine full backup worked without a hitch.

However, the next day I was disappointed to note that Time Machine had not performed a single automatic backup. Examining the system log via Console.app showed me the following single-line entry:

*11/20/10 Nov 20, 3:14:29 AM com.apple.backupd-auto[3183] Not starting scheduled Time Machine backup - time machine destination not resolvable.*

I tried to invoke a backup manually by using the Time Machine menu item and selecting "Back Up Now," and this worked just like the first time without any problem. It also left the following (very correctly-functional-looking) lines in the system log:

*11/20/10 Nov 20, 3:15:30 AM com.apple.backupd[3333] Starting standard backup*
*11/20/10 Nov 20, 3:15:32 AM hdiejectd[3339] running*
*11/20/10 Nov 20, 3:15:33 AM com.apple.backupd[3333] QUICKCHECK ONLY; FILESYSTEM CLEAN*
*11/20/10 Nov 20, 3:15:36 AM com.apple.backupd[3333] Disk image /Volumes/Achilles Time/Achilles.sparsebundle mounted at: /Volumes/Time Machine Backups*
*11/20/10 Nov 20, 3:15:36 AM com.apple.backupd[3333] Backing up to: /Volumes/Time Machine Backups/Backups.backupdb*

(And then there were some other lines, which I've truncated because they all look great.)

The thing to note is the 2nd and 4th lines, where hdiejectd is running and where backupd looks for the volume mounted at */Volumes/Time Machine Backups*. It seems Time Machine is automatically recognizing the ComputerName.sparsebundle (in my case Achilles.sparsebundle), mounting it to "/Volumes/Time Machine Backups" and then carrying on as normal.

So my question is, if it can do this when I manually start a backup, why can't it do this for scheduled backups automatically?

I've looked at various plist files, specifically the ones at

/System/Library/LaunchDaemons/com.apple.backupd*
/Library/Preferences/com.apple.TimeMachine.plist

but nothing seems out of place--at least not to my inexpert eyes.

I realize that using Time Machine to back up to a local, encrypted sparsebundle is "not officially supported," but I don't think it's too far-fetched a thing to do, is it? Any and all guidance, especially resource to become better oriented within Time Machine internals, would be appreciated. Thanks in advance.

Mac OS X (10.6.5)

Posted on Nov 20, 2010 3:35 AM

Reply
18 replies

Nov 22, 2010 2:52 PM in response to eidolonical

Yet another workaround - seems to work ok for the desktops.

<PRE>
/System/Library/LaunchDaemons/com.apple.backupd-auto.plist
/System/Library/LaunchDaemons/com.apple.backupd-wake.plist
</PRE>
I've removed the -auto, and -wake arguments (delete the line), from the above files, and the backups function pretty much as expected.

After boot/reboot unless you explicitly select the TM Volume where the sparsebundle resides, the icon does not change to the TM icon. You will also get the "The identity of the backup disk has changed since the previous backup" popup, just say hit "use this disk". Its interesting that the identity has not changed and all the UUID's are correct, and only when using arguments to backupd-helper does it fail. Bizarre.

Nov 22, 2010 10:01 PM in response to eidolonical

Thank you for this nudge, eidolonical. I can confirm that adding a LaunchDaemon to invoke the job works. For those unfamiliar with launchd but who feel comfortable using Terminal, here's a suggestion for a simple thing to do to work around this issue.

*Step 1:* Copy the "com.apple.backupd-auto.plist" file to make your own Time Machine helper file using the following command (while logged in to your Mac as an Admin account):

sudo cp /System/Library/LaunchDaemons/com.apple.backupd-auto.plist /Library/LaunchDaemons/com.apple.backupd-helper.plist

*Step 2:* In the new file, delete the line that reads "<string>-auto</string>". You may also want to write a comment to yourself about what this file is. Save the file. Here's what mine looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--

README: This is a temporary workaround file to get Time Machine's scheduled
backups working again. For more information about this issue, see:

<a class="jive-link-external-small" href="http://discussions.apple.com/thread.jspa?messageID=12629004">http://discu ssions.apple.com/thread.jspa?messageID=12629004</a>

-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.backupd-helper</string>
<key>Disabled</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd- helper</string>
</array>
<key>StartInterval</key>
<integer>3600</integer>
<key>RunAtLoad</key>
<false/>
<key>KeepAlive</key>
<false/>
<key>EnableTransactions</key>
<true/>
<key>SHAuthorizationRight</key>
<string>system.preferences</string>
</dict>
</plist>

*Step 3:* Load the new job into launchd using the following command:

sudo launchctl load -w /Library/LaunchDaemons/com.apple.backupd-helper.plist

*Step 4:* Enjoy. Yeah, that's it.

With this workaround, hourly scheduled backups will function, but the times they actually start will depend on when you loaded the job into launchd. That is, the "Next Backup" time as reported by the Time Machine System Preferences preference pane will be inaccurate.

I can live with that, but I thought it was worth pointing out.

Nov 22, 2010 11:24 PM in response to Pondini

So would this be com.apple.TimeMachine.MachineID.plist, so what has changed ?

<key>VerificationDate</key>
<date>2010-11-01T21:30:16Z</date>
<key>VerificationExtendedSkip</key>
<false/>
<key>VerificationState</key>
<integer>1</integer>
<key>com.apple.backupd.BackupMachineAddress</key>
<string>00:1b:63:9b:d1:1f</string>
<key>com.apple.backupd.HostUUID</key>
<string>00000000-0000-1000-8000-001B639BD11F</string>

As you can see the "mac" addresses matches, and the UUID matches ...

or is this some weirdness with DestinationUUID in /Library/Preferences/com.apple.TimeMachine.plist ?

Nov 23, 2010 5:51 PM in response to Pondini

So which UUID should it be ?

The Volume UUID (where the sparsebundle resides)
or
The Volume UUID of the sparsebundle (the value it actually has in the plist)

What I find weird is that if the Volume is remotely mounted, it works fine, just doesn't work locally mounted, and it only doesn't work iff you use -attach, -auto, or -wake for backupd-helper.

Dec 6, 2010 1:18 PM in response to rocafellaice

This is a regression introduced in 10.6.5. The sparsebundle approach worked throughout 10.5 and 10.6 until now. It clearly is not a problem of principle, since a manually invoked backup to a sparsebundle works fine. OS X was even updated in 10.6.3 (?) to provide better support for sparsebundles by allowing it to automatically grow the bundle if the bundle was full but there was room on the disk itself. So this is a method Apple intend to support.

I have filed a bug on the Developer Bug Reporter (#8734318).

Auto backup to local, encrypted sparsebundle fails but manual backup works?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.