WAS v8.5 > Reference > Command-line utilitiesbackupConfig command
The backupConfig command is a simple utility to back up the configuration of your node to a file.
This article is about configuration migration, such as migrating deployment managers and federated nodes in a network deployment environment. The Application Migration Toolkit for WAS provides support for migrating applications from previous versions of WAS to the latest product version. For information about migrating applications, read more about the Application Migration Toolkit. sptcfg
By default, all servers on the node stop before the backup is made so that partially synchronized information is not saved. For more information about where to run this command, see Using command line tools. If we do not have root authority, specify a path for the backup file in a location where we have write permission. The backup file will be in zip format and a .zip extension is recommended.
In a UNIX or Linux environment, backupConfig does not save file permissions or ownership information. The restoreConfig command uses the current umask and effective user ID (EUID) to set the permissions and ownership when restoring a file. If it is required the restored files have the original permissions and ownership, use the tar command (available on all UNIX or Linux systems) to back up and restore the configuration.
This command uses the user ID and password information in the profile_root/properties/ipc.client.props file. To avoid user ID and password prompts when we use this command, add the user ID and password information to the ipc.client.props file.
Location
Issue the command from the profile_root/bin directory.
Syntax
The command syntax is as follows:
backupConfig.sh backup_file [options]
backupConfig.bat backup_file [options]
where backup_file specifies the file to which the backup is written. If we do not specify one, a unique name is generated.
Parameters
The following options are available for backupConfig:
- Tells backupConfig not to stop the servers before backing up the configuration
- Suppresses the progress information that backupConfig prints in normal mode
- Location of the log file to which trace information is written
By default, the log file is named backupConfig.log and is created in the logs directory.
- Defines the profile of the application server process in a multi-profile installation
The -profileName option is not required for running in a single-profile environment. The default for this option is the default profile.
- Replaces the log file instead of appending to the current log
- Generates trace information into the log file for debugging purposes
- User name for authentication if security is enabled in the server; acts the same as the -user option
- User name for authentication if security is enabled in the server; acts the same as the -username option
- Password for authentication if security is enabled in the server
- Prints a usage statement
- Prints a usage statement
Usage
The following example creates a new file that includes the current date:
backupConfig.sh WebSphereConfig_2005-04-22.zip
backupConfig.bat WebSphereConfig_2005-04-22.zip
The following example creates a file called myBackup.zip and does not stop any servers before beginning the backup process:
backupConfig.sh myBackup.zip -nostop
backupConfig.bat myBackup.zip -nostop
Related information:
restoreConfig command