Appliance snapshot enables you to:
- take a snapshot of the data store
- capture critical configuration files
- support disaster recovery between appliances
- archive snapshots off the appliance
 | Warning Appliance snapshot and restore functionality can be used only with the same versions of BMC Atrium Discovery. The feature is not designed to backup and restore a complete appliance including the operating system and the BMC Atrium Discovery application. You should use the VMware features to backup or restore the entire appliance. |
The following items are included by default in a snapshot:
- From $TIDEWAY/var/tideway.db/data, the critical files of the data store:
- the data files
- the log files (These are non-optional log files. Never delete or modify these files.)
- From $TIDEWAY/etc
- All configuration files (*.conf)
- User information (users.db)
- Group information (groups.db)
- Security information (security.db)
- Port information (portdb.xml)
- Credentials vault (tideway.vault)
- From $TIDEWAY/bin
- All tideway binaries (tw_*)
- All shell scripts (*.sh)
- Customer data: $TIDEWAY/data/customer
- Taxonomy extensions: $TIDEWAY/data/custom/taxonomy/extensions.xml
Any items that you want to ensure are archived as part of a snapshot that are particular to your installation of BMC Atrium Discovery should be stored in the directory provided for customer data – $TIDEWAY/data/customer.
The items included in a snapshot are configured using the $TIDEWAY/etc/archive_conf.xml file. You do not need to edit this file. However, if you make changes in this file, make sure that you add new repository sections rather than edit existing ones.
Archive disk space limit
There is a limit to the amount of disk space that the archive can use. When this limit is passed the archive memory information is highlighted and Create on the user interface (UI) is dimmed. If this happens, you must delete some or all of the archived data in order to continue using the appliance database snapshot.
The actual amount of disk space required is at least twice the size of the database being archived. This is because a copy of the datastore is made and that copy is compressed. If insufficient diskspace is available, the error message reports the amount of space available and the amount of space required.
Creating a new appliance snapshot
To create an appliance snapshot you must place the appliance into maintenance mode and stop discovery. For more details, see Putting the Appliance into Maintenance Mode and Controlling discovery.
 | Warning Maintenance Mode is not a single user mode. If you are performing any tasks which could affect other users, such as appliance snapshots, you should ensure that you are the only logged in user. |
To verify that the new snapshot has been created, from the Administration tab, click Active Sessions.
To create a new snapshot
- From the Appliance section of the Administration tab, click Control.
- On the Appliance Control page, click Set Maintenance Mode to place the appliance into the maintenance mode.
- Select Snapshot & Restore from the Appliance menu to display the Appliance Snapshot page.
If discovery is still running or the appliance is not in maintenance mode at this stage, a pop-up warning is displayed. When you dismiss this warning, the Appliance Snapshot window is displayed, though all buttons are dimmed and inoperative. Depending on the warning, see Putting the Appliance into Maintenance Mode or Stopping the Discovery Process for more information.
- In the Create New section, specify the name of the snapshot to be saved in the field for Name, and record any notes applicable to the snapshot to be saved in the field for Notes. The fields for Name and Notes are mandatory.
Each snapshot also records the date and the time it was taken. The size of the snapshot is displayed to enable you to make informed decisions about managing the archive.
- Click Create.
- You are presented with a confirmation screen.
 | Warning This process can take a few minutes. Do not refresh or navigate away from this page during this process. |
When the snapshot is completed, the Appliance Snapshot page is redisplayed showing the newly created snapshot.
Migrating your appliance snapshot to another appliance
You can move your snapshot from one appliance to another appliance.
Downloading a snapshot from the appliance to the SSH server
- Click Download.
- The Download Snapshot pop-up window is displayed.
- Enter the following details in the pop-up window:
| Field Name |
Description |
| Download Target IP |
The IP address of the destination appliance. |
| Target User |
The user account to access the destination appliance. |
| Target Password |
The corresponding password. |
| Target Archive Root |
The directory into which to download the snapshot. For migration this is $TIDEWAY/var/snapshot/snapshots/ |
- Click Download on the pop-up window.
- On completion, an operation log window is displayed indicating whether the download was successful or not, and providing information about any errors that may have occurred.
If successful, your appliance snapshot has now been copied to your destination appliance and can be seen in the Appliance Snapshots section of the main page.
- On the destination appliance, click Restore next to your selected snapshot to restore to the migrated snapshot.
- You are presented with a WARNING popup screen.
- You can select the check box for one or all of the following:
- Create Rollback Snapshot: to create a snapshot that you can roll back to before attempting to restore a snapshot.
- Preserve Current Config Files: to prevent the new snapshot overwriting the current configuration files.
 | Note If you do not select the Preserve Current Config Files option, the current configuration of the target appliance will be replaced with those from the snapshot; including such items as the appliance name, SMTP settings and so forth. |
- Restore discovery run state from snapshot: to restore the state of the discovery run that was preserved in the appliance snapshot.
- The Automatic Rollback Timer option enables you to set the time that you have in minutes before the snapshot is automatically rolled back to its previous state. There is a list on the UI where you can select 3, 5, 10, 15, and 60 minutes, where 5 minutes is the default setting.
- Once you have selected your options, click Restore on the pop-up window.
- You are presented with a screen confirming that the system is restoring.
 | Warning This process can take a few minutes. Do not refresh or navigate away from this page during this process. |
- The Confirm Restore screen is displayed.
- The restore commences and the BMC Atrium Discovery software restarts. When you login again you are returned to the Home Page.
- From the Appliance section of the Administration tab, select Snapshot & Restore.
- Click either Confirm Restore in the pre-set time period to prevent Automatic Rollback, or Cancel to rollback the restore.
 | Warning You must click Confirm Restore to keep the restored snapshot. |
If you click Cancel, it causes the snapshot to rollback. The snapshot is marked as invalid and Restore is dimmed. An Alert icon is displayed which, when clicked, shows the name and the states the reason why it has cancelled Restore. If you want to override a cancel, click Mark Valid.
- In the Utilities section, click Restore Log to view details of the restore operation.
If a problem occurs during snapshot processing, an alert icon will appear next to that particular log. An alert log icon will also appear if an invalid IP Address is entered for the migration.
Uploading and downloading snapshots
In the Utilities section, Upload and Download enable you to take snapshots on or off the appliance.
 | Note To use the upload and download features, your target must be an SSH server. |
Downloading a snapshot from the appliance to the SSH server
- Click Download.
- The Download Snapshot pop-up window is displayed.
- Enter the following details in the pop-up window:
| Field Name |
Description |
| Download Target IP |
The IP address of the destination appliance. |
| Target User |
The user account to access the destination appliance. |
| Target Password |
The corresponding password. |
| Target Archive Root |
The directory into which to download the snapshot. |
- Click Download on the pop-up window.
On completion, an operation log window is displayed indicating whether the download was successful or not, and providing information about any errors that may have occurred.
Uploading a snapshot to the appliance from the SSH server
- Click Upload.
- The Upload Snapshot pop-up window is displayed.
- Next to Upload Target IP, enter the IP address for the target SSH server.
- Enter the Target User (the user account name) and the user account password next to Target Password.
- The Target Archive Root is the directory under which snapshots are saved.
- The Snapshot ID is a unique identifier created using the date and time of the snapshot creation in the form: YYYY-DD-MM_hhmmss. Snapshots are saved in a directory of this name under the target archive root directory.
- Click Upload on the pop-up window.
On completion, an operation log window is displayed indicating whether the upload was successful or not, and providing information about any errors that may have occurred.
Scheduled appliance snapshot
The scheduled appliance snapshot feature enables you to use the cron feature to schedule appliance snapshots. The script should be scheduled using the cron feature ($TIDEWAY/etc/cron) as the tideway user.
Appliance snapshot requires Discovery to be stopped and the appliance put into maintenance mode. For more information see Putting the Appliance into Maintenance Mode.
If the script is configured and scheduled, you can prevent it running by putting a file called .nosnap in the $TIDEWAY/var/ directory. If this file is present, the script will not perform any operations. You can also create and delete this file through the user interface. Enter the following URL:
http://appliance/ui/SetupSnapshotSchedule
where appliance is the name or IP address of the appliance. The Appliance Scheduled Snapshot page is displayed which contains an Enable or Disable Scheduled Snapshot toggle button. Click the button to enable or disable the scheduled appliance snapshot feature.
Using the snapshot utility
The snapshot utility $TIDEWAY/bin/tw_scheduled_snapshot is used to create and transfer appliance snapshots. With the utility, you can:
- Create named snapshots and include notes
- Transfer the snapshot to another appliance or to a remote host running SSH
- Delete the local copy of the snapshot after it has been transferred to a remote host or another appliance
For more information about the utility and the available options, see tw_scheduled_snapshot.