The tw_restore
utility enables you to restore a BMC Atrium Discovery backup from a local directory on the appliance, an SSH enabled remote system, or a Windows share. The utility can be used on an appliance where the UI cannot be started. To use the utility, type the following command:
tw_restore [options]
where:
Common password options are described in this table
Common password options are described in this table to make it clear whether the password referred to is for the local or remote system.
Restoring backed up system data when a baseline run is in progress results in critical baseline alerts
Baseline is run periodically by the BMC Atrium Discovery system. Should baseline be running when a restore is started critical baseline alerts may be reported. The restore is unaffected by these alerts. The automatic baseline check schedule can be modified using the tw_cron_update.
Command Line Option |
Description |
---|---|
|
Specifies a remote backup directory relative to the user's home directory on SSH servers, and the top-level share directory in Windows shares. This option is required for SSH and Windows shares, unless the alternative |
|
Restore from a local backup in the |
|
Restore from a backup on a Windows share. |
|
Restore from a backup on a remote SSH server. |
|
Specify an email address to receive notification when the restore completes. This depends on email being correctly configured on the appliance. |
|
This option may be used where BMC Atrium Discovery has been interrupted by an unscheduled reboot or power failure. When you run |
|
Force backup restore when services are down. This may omit some auditing of the action. |
|
Display help on standard options and exit. |
|
The hostname or IP address of the remote host. |
|
The user to run the utility as. This has to be a valid BMC Atrium Discovery UI user such as the system user, not a username used to access the command line via SSH. |
|
Specifies the password of the BMC Atrium Discovery user. If no password is specified, you are prompted for one. This is only relevant for utilities that have the |
|
Specifies a file from which the password is to be read. This is only relevant for utilities that have the |
|
The port on the remote Remote SSH server. |
|
Preserve the identity and the HTTPS configuration of the appliance rather than take on the identity from the restored backup. |
|
The password for the remote user on the remote system. For SSH servers or Windows shares. |
|
The username for the remote user on the remote system. For SSH servers or Windows shares. |
|
The share name of the remote Windows share. For example |
|
Stop the services to perform the restore. Required when restoring from a backup. |
|
The UNC path for the Windows share. For example |
|
Verify the backup without performing a restore operation. |
In the following examples, the local username is system
and the password is not specified on the command line. The remote SSH username is tideway
and the password is password
. The remote Windows share is called remshare
, the corresponding username is remdom/tideway
and the password is password
.
The utility prompts for the local password after you enter the command. Type the commands on a single line; line breaks are provided in the examples to make them easier to read.
$TIDEWAY/bin/tw_restore --verify-only --backup-local --username system
$TIDEWAY/bin/tw_restore --verify-only --backup-ssh --backup-dir=/usr/tideway/var/backup --remote-user=tideway --remote-password=password --host=de-32.bmc.com --username system
$TIDEWAY/bin/tw_restore --verify-only --backup-smb --share=remshare --backup-dir=2012-10-08_115740_addm_backup --remote-user=remdom/tideway --remote-password=password --host=192.168.1.101 --username system
$TIDEWAY/bin/tw_restore --stop-services --backup-local --username system
$TIDEWAY/bin/tw_restore --stop-services --backup-ssh --backup-dir=/usr/tideway/var/backup --remote-user=tideway --remote-password=password --host=de-32.bmc.com --username system
$TIDEWAY/bin/tw_restore --stop-services --backup-smb --share=remshare --backup-dir=2012-10-08_115740_addm_backup --remote-user=remdom/tideway --remote-password=password --host=192.168.1.101 --username system
1 Comment
Ben Simpson