4.9.1 Backing up a profile
Use the backupConfig command to back up a profile. The command will zip the configuration file and store it in the current directory or a specified file name. The zip file can be restored using the restoreConfig command. By default, backupConfig will stop all servers in the configuration before performing the backup.
-
| Executing backupConfig from the <was_home>/bin directory without the -profileName parameter will back up the default directory.
|
-
| Executing backupConfig from the <profile_home>/bin directory without the -profileName parameter will back up that profile.
|
-
| To back up a node configuration, specify the node profile in the -profileName parameter.
|
-
| To back up a stand-alone appserver, specify the appserver profile in the -profileName parameter.
|
Syntax:
backupConfig <backup_file> [options]
The backup_file parameter specifies the file where the backup is to be written. If you do not specify a backup file name, a unique name is generated and the file is stored in the current directory. If you specify a backup file name in a directory other than the current directory, the specified directory must exist.
The parameters are shown in Table 4-17.
Table 4-17
Parameter
| Description
|
-nostop
| Servers are not to be stopped before backing up the configuration.
|
-quiet
| Suppresses the printing of progress information.
|
-logfile <fileName>
| Name of the log file to which information gets written. The default is <profile_home>/logs/backupConfig.log
|
-profileName <profile>
| Profile to run the command against. If the command is run from <was_home>/bin and -profileName is not specified, the default profile is used. If run from <profile_home>/bin, that profile is used.
|
-replacelog
| Replaces the log file instead of appending to the current log.
|
-trace
| Generates trace information into the log file for debugging purposes.
|
-username <name>
| User name for authentication if security is enabled in the server.
|
-password <password>
| Specifies the password for authentication if security is enabled.
|
-help of -?
| Prints command syntax information.
|
backupConfig parameters
|