Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Exclude Software Update data in Time Machine backups OS X Server
Snow Leopard only hintUsing the Time Machine preference pane, it is not possible to effectively exclude the data for the Software Update service from Time Machine backups on Mac OS X Server 10.6. A method is presented here which will do that.

By default the software downloaded from Apple’s servers necessary for the Software Update service is located at /private/var/db/swupd. When excluding this directory using the Time Machine preference pane the path is changed to /var/db/swupd (/var being a symbolic link to /private/var) and the data is still backed up. [crarko adds: This is for Snow Leopard Server only.]

To remove the Software Update service data from the backups, follow these steps using an administrative account:
  1. Exclude /private/var/db/swupd or /var/db/swupd in the Time Machine preference pane.
  2. Quit the System Preferences application.
  3. Open the Terminal application.
  4. Type the following commands:
  5. sudo -s
    cd /Library/Preferences
    plutil -convert xml1 com.apple.TimeMachine.plist
    pico com.apple.TimeMachine.plist
    
  6. Press ctrl-W to switch to search mode in pico
  7. Type swupd and press enter
  8. Change the path /var/db/swupd to /private/var/db/swupd
  9. Press ctrl-X to leave pico
  10. Press y to confirm
  11. Type exit to leave the root shell
  12. Type exit to leave your terminal session
  13. Quit the Terminal application
You might want to delete all previous backups of the /private/var/db/swupd directory. To do this, navigate to /private/var/db in the Finder (press cmd-shift-G), launch Time Machine, select the swupd folder and choose the Delete all backups of 'swupd' command from the gear button’s menu.

[crarko adds: I haven't tested this one.]
    •    
  • Currently 2.25 / 5
  You rated: 2 / 5 (12 votes cast)
 
[8,800 views]  

10.6: Exclude Software Update data in Time Machine backups | 13 comments | Create New Account
Click here to return to the '10.6: Exclude Software Update data in Time Machine backups' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Exclude Software Update data in Time Machine backups
Authored by: macnixer on May 25, '10 08:08:42AM

I did not find a /private/var/db/swupd in my SL system. So does it seem that the hint applies to all SL users?



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: Soliman on May 25, '10 08:27:12AM

Same here, no (/private)/var/db/swupd on my SL box...

---
Sylvain



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: crarko on May 25, '10 08:35:57AM

That's correct. This is for Snow Leopard Server only. I've added a comment to the lead-in that I hope will make that more clear.

Sorry for any confusion.

~craig

Edited on May 25, '10 08:39:35AM by crarko



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: alexiskai on May 25, '10 09:35:07AM

This is cool. I wish someone would come up with a way to make Time Machine work better over ARD. Two problems: First, on a headless unit, Time Machine's GUI flat-out doesn't work - just crashes the Finder. Secondly, over ARD, Time Machine's GUI hides the cursor. So one ends up playing a tedious game of blind clicking to get what one wants.



[ Reply to This | # ]
TimeDog
Authored by: goatbar on May 25, '10 12:09:39PM

TimeMachine desperately needs a command line interface. That would solve issues of ARD if you are in a terminal via ssh. Been using TimeTracker for a GUI to view changes in a system from Apple updates that break things. TimeDog seems cool, but haven't had a chance to try it. Great start Apple, but please keep pushing TimeMachine forward. If I could only do what rsync and svn (et al) do by ignoring backups and other such extraneous files.

Arg... the filters keep saying this is spam. So much for linking to timedog



[ Reply to This | # ]
TimeDog
Authored by: Mikey-San on May 25, '10 01:39:00PM

Always remember that if there are things like this that you want, the best thing to do is to file a bug asking for it:

http://bugreport.apple.com/

If your Apple ID isn't registered as an ADC account, you can do so here:

http://developer.apple.com/programs/register/



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: marook on May 25, '10 12:31:49PM

FIle a bug: bugreport.apple.com !

Please...

---
/Marook



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: adrian.nier on May 28, '10 02:34:15AM

Already did: http://openradar.appspot.com/8020022



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: ehunt123 on May 25, '10 08:54:15PM

Cli utility tmtool can also manually exclude paths if you're a cli-warrior. Lots of articles here on what else to exclude.



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: boris42 on May 29, '10 12:57:37AM

It is a VERY BAD idea to backup a server with Time Machine. Sooner or later you will encounter TM backing up a file that is in use (mail, sharing, OD etc) and you will end up with errors and possibly corrupted and unusable backup. Use selective scripts that stop server services temporarily during backup which should be done in off-peak hours (at night).

---
Apple Certified Master Trainer/Pro
Logic, Final Cut, Shake, OS X Server, iLife/iWork



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: adrian.nier on May 29, '10 11:14:35PM

Using Time Machine as the only backup strategy on Mac OS X server is indeed a bad idea. But then again everybody checks their backups regularly performing a test restore, so everyone knows Time Machine’s limitations.



[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: j-beda on Aug 18, '10 07:46:03PM

At the end of things do you not need to convert back to binary via:

plutil -convert binary1 com.apple.TimeMachine.plist




[ Reply to This | # ]
10.6: Exclude Software Update data in Time Machine backups
Authored by: adrian.nier on Aug 24, '10 09:34:53AM

In my experience that step is unnecessary. Could you give a clue why that might be better practice?



[ Reply to This | # ]