----- Original Message ----
From: Rusty Myers <email@hidden>
To: Peter J. Russell <email@hidden>
Cc: dboyer <email@hidden>; email@hidden
Sent: Thursday, 24 July, 2008 12:47:23 PM
Subject: Re: OD archive
I use a launchd item which I wrote to run an odarchive script every evening at about 8:30pm. This backs up to file with a specified password and can be restored through the ServerAdmin GUI if anything goes awry.
The main crux of the script is:
echo "dirserv:backupArchiveParams:archivePassword = mypassword" > /var/root/command.txt
echo "dirserv:backupArchiveParams:archivePath = /path/to/backup/odarchive" >> /var/root/command.txt
echo "dirserv:command = backupArchive" >> /var/root/command.txt
serveradmin command < /var/root/command.txt
rm /var/root/command.txt
Thanks for the script, I will be looking into using it.
Question.
Is there a reason why you are using a command.txt file to store the commands and then deleting it, instead of a set script with all variables that you need? Seems
like over complication to me. No offense, I'm sure there is a good reason. =)
Thanks
Rusty