These are a few scripts we use for registering and unregistering Macs to an OD server.
Quite useful for those that administer allot of Macs, they save you some manual labour.
I've made a wiki entry for rsync scripts under Mac OS X.
Sometimes you need to schedule syncs, it's obvious to use rsync + launchd but I found the end result not to be so obvious ;)
The rsync script listed a.t.m. is an expect script taking into account that you have to enter a passphrase. . . Annoying but it works like a charm for syncing between two Mac servers or clients.