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.