Tip: Workaround for Embox Script Error
Novell Cool Solutions: Tip
By John Fuge
Digg This -
Posted: 20 Apr 2005
Running the embox scripted backup gives an "Invalid command line switch error" after applying NW6.5 SP3. The screen flashes pretty quickly, so you may need to run the script several times to catch the error message. Or, you can login and run the backup manually to see the error.
Here is a one-line command from my edirback.ncf file. Notice the -e switch near the end. This is a broken script.
?y java -nsac -cp sys:\system\embox\eMBoxClient.jar embox -s 10.1.1.1 -p 8008 -u .admin.myco -w password -n -t backup.backup -b -f sys:\system\edirback\edirback.bak -l sys:\system\edirback\edirback.log -u sys:\system\edirback\edirincl.txt -e -t -w
You will need to remove the -e (NICI) switch from the end of the script to complete the backup process. Novell did document that the switch was removed in eDirectory version 188.8.131.52 and later, but they did not document that it would stop the scripted backups from running at all. You could always add the files from the sys:system\nici directory to your include file. That way the files would still be in the backup - you would just have to do a little more work.
Remember, just remove the -e from the end and leave everything else as it is. Don't forget to review your backup log file to ensure that the backup is still running sucessfully.
Example 1: eDirectory Backup Script File
Here is an example of my working eDirectory backup script file I named EDIRBACK.NCF:
Example 2: Referenced File for Backups
Here is an example of my EDIRINCL.TXT file that I reference in my EDIRBACK.NCF file. This text file causes the backup process to grab a few more files from my server. All of this really helps with disaster recovery. Notice that I added the NICI directory files to this backup.
sys:etc\hosts;sys:system\config.txt; sys:public\Rootcert.der; sys:tomcat\4\webapps\nps\WEB-INF\PortalServlet.Properties; sys:system\nici\nicisdi.key; sys:system\nici\xarchive.000; sys:system\nici\xarchive.001; sys:system\nici\xmgrcfg.ks2; sys:system\nici\xmgrcfg.ks3; sys:system\nici\xmgrcfg.nif
For information about setting up a scripted backup using Embox, see the "Backup and Restoring Novell eDirectory" chapter of the eDirectory manual at:
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com