Backing Up and Restoring Novell eDirectory
445
no
vd
ocx
(e
n)
6 Ap
ril 20
07
4
Periodically check the results recorded in the log file you specified, to make sure the
unattended backups are successful.
Examples of System Batch Files for Unattended Backups
Below are the following two examples:
“Example Batch File for NetWare” on page 445
“Example Batch File for Windows” on page 445
Example Batch File for NetWare
java -nsac -cp sys:\system\embox\eMBoxClient.jar embox -s 10.10.1.200
-p 8008 -u admin.mycontainer -w mypassword -n -t backup.backup -b -f
sys:\system\backup\backup.bak -l sys:\system\backup\backup.log -u
sys:\system\backup\includefile.txt -t -w
In this example batch file, the following options are shown.
On NetWare only, include
-nsac
after the java command. (Don't use
-nsac
on any other
platform.)
WARNING:
On a NetWare server only, to avoid an abend you must include
-ns
.
The -ns option opens a new screen.
The ac option automatically closes the screen when the batch file task is complete. If you don't
include ac in NetWare batch files, each time the backup batch file is run unattended a screen
will be left open on the server.
A full backup is specified (-b).
An include file is specified (-u). This is optional. You can use an include file if you want to
back up other files of your choice. The include file must be created beforehand.
Stream files (-t) are also backed up.
The option to overwrite a backup file of the same name is specified (-w).
IMPORTANT:
If a backup file of the same name exists (this is likely if you use the same batch
file regularly), it's important to use the -w option to overwrite the existing backup file to make
sure your backup is successful.
In batch mode, if -w is not specified and a file of the same name exists, the default behavior is
to not overwrite the file, so a backup is not created. (In interactive mode, if -w is not specified,
the eMBox Client will ask you whether you want to overwrite the file.)
If you are making a file system backup shortly after each full or incremental backup of
eDirectory, your previous backup files should have been copied from the server to file system
backup tapes, so it should be safe to use this option to overwrite the existing backup file.
A nonsecure port is used in this example (-p 8008), so a nonsecure connection is specified (-n).
Example Batch File for Windows
java -cp c:\novell\nds\embox\eMBoxClient.jar embox -s myserver -p 8008
-u admin.myorg -w mypassword -n -t backup.backup -b -f
c:\backup\backup.bak -u c:\backup\includes\includefile.txt -l
c:\backup\backup.log -e -t -w
Summary of Contents for EDIRECTORY 8.8 SP2
Page 4: ...novdocx en 6 April 2007...
Page 116: ...116 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 128: ...128 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 255: ...256 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 406: ...408 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 563: ...566 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 573: ...576 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 601: ...604 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...