Backup
The backup process backs up both the database and the configuration files. Due to their size, event-related and statistics-related database tables are not backed up by default, but you can choose to include them and some other optional configuration files. Backing up the SMS database is resource-intensive, particularly if the server is under heavy load and the database is large. Consider this when scheduling a regular backup or initiating an immediate one.
Restore
When restoring an SMS Server database, SMS validates the integrity of the file from which backed-up data is being restored. If the file is invalid, the SMS console displays an error message. To ensure database integrity, the system automatically reboots after the restore operation. SMS supports restoring a backup taken only from support versions. For example, you can restore a backup taken with SMS v6.0 and restore it to an SMS v6.5 server. When you restore a previous-version backup, SMS not only restores the database but properly migrates the data and data structures to match the version of SMS currently running on your SMS server.
Storage
The backup and restore processes need access to storage to either backup data to the storage or restore data from the storage. The SMS backup and restore processes can perform their tasks using any of the following storage access protocols:
- Network File System (NFS) Protocol
- Server Message Block (SMB) Protocol, a Microsoft-based shared-access file system.
- Secure File Transfer Protocol (sFTP)
- Secure Copy Protocol (SCP)
- Secure Hypertext Transfer Protocol (HTTPS)
Process
Backup and restore processes break down into the following tasks, each performed by the SMS server:
- Mount the storage destination, which is referred to in the SMS product as the location.
- Stop the SMS server database and SMS server application.
- Backup or restore the database files to/from the specified storage location.
- Un-mount the storage destination.
- Restart the SMS server database and application. If it is a restore operation, the SMS server is not just restarted; it is rebooted, which terminates client connections to the SMS server.
IP Addressing
Some of the supported storage access protocols allow IPv6 addresses. When you specify a backup location in the SMS backup wizard with an IPv6 address, adhere to the following syntax requirements:
- NFS - Does NOT support IPv6
- SMB - IPv6 address MUST be surrounded by brackets
- SCP - IPv6 address with or without brackets
- sFTP - IPv6 address with or without brackets
How To: Common Task
- Log in to the SMS from a client.
- On the SMS toolbar, navigate to the Admin->Database tab.
How To: Backup the SMS Database
- If you want to schedule a one-time or recurring backup, click New in the Scheduled Backups area. If you want to initiate an immediate backup, click Backup Now in the Backup and Restore area. The SMS Backup Wizard launches.
- If initiating an immediate backup, skip this step and proceed to the next one. If you are scheduling a one-time or recurring backup, enter into the first page of the SMS Backup Wizard schedule information, including the recurrence pattern of the scheduled backup and the date range of the backup schedule itself.
- Configure the backup options, referring to the following table for descriptions:
Database Backup Options | |
Setting | Description |
Number of Digital Vaccines | In addition to backing up the SMS Server database, you can specify up to six of the most recent Digital Vaccines (DV) to include in the backup. You are required to back up the most recent DV. |
Number of Device TOS packages | You can optionally specify up to six of the most recent Device TOS packages to be included in the backup. |
Number of custom packages | If you have custom packages installed, you can specify up to six of the most recent custom packages to be included in the backup. The backup always includes the latest active package. It does not automatically back up more than one package or inactive packages. For example, your installation might include a custom scriptwriter (CSW) package. |
Include events | Check this box if you want to include the contents of the database's events table in the backup. |
Email backup results | Check this box if you want to email the backup results to the members of the SMS notification list, which is defined in the SMTP Server area on the Admin - Server Properties - Network tab. |
Timestamp suffix on the backup file name | Check this box if you want SMS to append the current timestamp to the end of the backup filename. |
Encrypt backup | If you want to encrypt the contents of the backed-up data, check this box and enter an encryption password. Be sure to note the password, as it is not recoverable. You cannot restore the contents of an encrypted backup without this password. |
- Click Next.
- Select the storage access protocol you want the backup process to use. Depending on the selected protocol, you are asked to identify one or more of the following:
- The network path to the storage location, including the hostname, directory structure, and backup file name.
- The username and password with sufficient access to write to the identified storage location. If NFS is the chosen storage access protocol, ensure the NFS share grants the SMS Server write permissions for the anonymous user.
- The domain in which the storage location resides.
- Verify your backup configuration and then click Finish. The backup procedure begins by validating access to the specified storage location and then proceeds to back up the data. Backup time varies according to the amount of data, the performance of the server, and the performance of the chosen storage location/device.
How To: Restore the SMS Database
Before initiating a restore, ensure there are no active client connections to the SMS Server, including from the SMS client, from the SMS CLI, or a web browser.
- From the Backup and Restore area, click Restore. The SMS Restore Wizard displays.
- Browse to and select the backup file you want to restore. The selected file can be of a backup taken with a version of SMS that matches or is older than, the version of SMS to which the file is being restored.
- Click Import. The SMS Restore Wizard verifies the integrity of the chosen file and proceeds if the file is valid. If the file is invalid, the SMS displays an error message.
- A summary page is displayed. If all of the summary information is correct, click Finish. Database restoration begins, with the restored data overwriting the existing data. Once complete, the SMS Server reboots to finalize the restore process and ensure data integrity of the restored database.