Restore a Configuration Backup
Required Tenable Security Center User Role: Root user
For more information about the backup and restore process and the configurations included in a configuration backup, see Backup and Restore.
Note: For best performance, after restoring a configuration backup, ensure the hostname associated with the configuration backup file matches the hostname on the receiving Tenable Security Center.
Before you begin:
- 
                                                        
Perform a configuration backup of your Tenable Security Center, as described in Perform a Configuration Backup.
 - 
                                                        
Confirm your receiving Tenable Security Center meets the requirements described in Backup and Restore.
 
To restore a configuration backup file:
- 
                                                        
Log in to Tenable Security Center via the command line interface (CLI).
 - 
                                                        
Stop Tenable Security Center, as described in Start, Stop, or Restart Tenable Security Center.
Tenable Security Center stops.
 - 
                                                        
Start PostgreSQL with the following command:
su - tns
/opt/sc/support/bin/pg_ctl -D /opt/sc/data/postgresql/ -l /opt/sc/admin/logs/postgresql.log start
exit
Note: If you are using an external PostgreSQL server, the server must be up and running before you continue to the next step.
 - 
                                                        
In the CLI in Tenable Security Center, run the following command to restore the configuration backup, where [path to backup file] is the path to the backup file you want to restore:
/opt/sc/support/bin/php /opt/sc/src/tools/restoreSCConfiguration.php -l [path to backup file]
For example:
/opt/sc/support/bin/php /opt/sc/src/tools/restoreSCConfiguration.php -l /tmp/SC-config-20211101-165111-sc-hostname-5_20_0.tar.gz
Tenable Security Center restores the configuration backup.
 - 
                                                        
Start Tenable Security Center, as described in Start, Stop, or Restart Tenable Security Center.
Tenable Security Center starts.
 
What to do next:
- 
                                                        
If you uploaded custom plugins before restoring your Tenable Security Center configuration, re-upload the custom plugins. For more information, see Custom Plugin Packages for NASL and CA Certificate Upload.
 - 
                                                        
Perform discovery scans to re-populate your repositories with vulnerability data. For more information, see Scanning Overview.