Chapter 5. Special topics 143
5.4.3 smsave
The smsave command saves a backup image of Systems Director persistent data, including
file system data and databases. You must stop the IBM Systems Director Server before
running the command.
Here are the options used with the smsave command:
? targetDir
Optional location to save backup files.
If not specified, the location will be /Director/backup/. Refer to Example 5-3.
? dbTargetDir
Optional location to save database backup files. Required if database is remote. If not
specified, the location will be defaulted based on the database type.
? dbUserName
Optional user name for database access. Must be used in conjunction with dbUserPwd.
? dbUserPwd
Optional password for database access. Must be used in conjunction with dbUserName.
Example 5-3 IBM Systems Director backup command
p5570lp01(root)/> smsave -targetDir /Director/backup/
Command is running. Monitor live status and results in Director/log/smsave.log
ALR1325I: The lightweight runtime has started.
Command completed successfully
p5570lp01(root)/>
5.4.4 smrestore
The smrestore command restores the IBM Systems Director persistent data, including file
system data and databases. You must stop the IBM Systems Director server before running
the command.
Syntax: smrestore [-h | --help | -?] -sourceDir [targetPath] -dbSourceDir
[dbTargetPath]-dbUserName [User] -dbUserPwd [Password] -noPrompt [true | false]
sourceDir
Location to backup files.
If not specified, the default location will be /Director/backup/. Refer to Example 5-4.
If the default location is used, then there can only be one set of save files in
/Director/backup/.
More than one set of save files in /Director/backup/ makes this parameter
mandatory.
Note: For an AIX system, if -dbUserName and -dbUserPwd are not specified, and you
have an IBM DB2 or Oracle database, you are prompted to provide a user name and
password. For an Apache Derby database, the -dbUserName and -dbUserPwd options are
optional.
144 IBM CSM to IBM Systems Director Transformation Guide
dbSourceDir
Optional location to locate database backup files.
If not specified, the location will be defaulted based on the database type.
dbUserName
Optional user name for database access. Must be used in conjunction with
dbUserPwd. If not specified, current Director credentials will be used.
–dbUserPwd
Optional password for database access. Must be used in conjunction with
dbUserName. If not specified, current Director credentials will be used.
noPrompt
Optional. Run without a confirmation prompt.
Example 5-4 IBM Systems Director restore command
p5570lp01(root)/> smrestore -sourceDir /Director/backup/
This operation will replace all current data with the specified backup set.
To continue, type "1" for yes or "0" for no.
1
Command is running. Monitor live status and results in Director/log/smrestore.log
ALR1325I: The lightweight runtime has started.
Command completed successfully
p5570lp01(root)/>
Note: If you set -noPrompt to true, you will receive a warning after issuing the smrestore
command saying that the command execution is destructive and will completely replace
the current IBM Systems Director data with the restored image. You will be prompted to
confirm that you still want to run the operation.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.240.178