Backing Up and Restoring Novell eDirectory
409
no
vd
ocx (
E
NU)
01
F
ebr
ua
ry
200
6
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 409
•
“Example Batch File for Windows” on page 409
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
Содержание EDIRECTORY 8.8 - GUIDE
Страница 4: ...novdocx ENU 01 February 2006...
Страница 16: ...16 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 68: ...68 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 90: ...90 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 116: ...116 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 128: ...128 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 184: ...184 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 249: ...250 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 307: ...308 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 333: ...334 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 371: ...372 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 439: ...440 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 519: ...520 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 529: ...530 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Страница 555: ...556 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...