image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #1  
Old July 11th, 2005, 01:02 PM
Registered User
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Tarz is on a distinguished road
[How To] Script RsyncX for Backup To and Recovery From a Server

Last year I began implementing Mac OS X 10.3 at the company where I work. One of the issues I had to tackle was backup of client systems to a central server. I tried several off-the-shelf products but none of them were quite right. Some required the administrator to be logged in and run the backup from a GUI. I didn't have time for that. Some wouldn't back up to a server at all, or did it in a really strange way. In the end, I decided that the best solution for me was RsyncX.

I uncovered a lot of little nagging problems on the way, but over a period of time made what I felt was significant progress. The end result of my work was a script that automates the backup of a desktop Mac to a Mac server, both of which are running RsyncX. The server runs RsyncX in daemon mode, waiting for connections from desktop/client Macs. The desktop runs the script to "push" files to the server each night through a "cron" job.

The overall package includes filtering out of files you don't need to backup and files that maybe you don't want to backup. The companion script that restores the backup from the server can generate a bootable system from the RsyncX backup.

On my web site I'm sharing the source code for the script and a more detailed description of what I did and why. I don't claim this will work for everyone (or "anyone" for that matter) but if you're trying to come up with a viable desktop-to-server backup for OS X Macs, you may find the notes helpful and the scripts at least a good starting point.

The script and procedure for backup using RsyncX is here:
http://mikesalsbury.com/mambo/content/view/108/2/

The script for restoring the system from a backup made above is here:
http://mikesalsbury.com/mambo/content/view/113/2/

These scripts assume a "more than novice" level of shell scripting and Rsync knowledge, though you shouldn't have to be an expert to make sense of them. As with any freebie, these are "use at your own risk".
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 10:40 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.