Restoring the Database of Dr.Web Enterprise Security Suite |
During the operation, Dr.Web Server regularly stores backup copies of important information: license keys, database contents, encryption private key, Server configuration and Control Center configuration. The backup files are stored in the following folders: •for OS: <installation_drive>:\DrWeb Backup •for OS: /var/opt/drwcs/backup •for OS: /var/drwcs/backup To perform the back up, a daily task is included into the Server schedule. If such task is missing in the schedule, it is recommended to create it. All files in the backup except the database contents, are ready to use. The database backup copy is stored in the .gz format compatible with gzip and other archivers. The database contents can be imported from the backup copy to another database of the Server using the importdb command, thus restore the data.
Restoring the DB for Different Versions of Dr.Web Server
If DB has been corrupted for some reasons during Server upgrade from previous versions to 11.0.2 version, do the following: 1.Remove the Server software of the 11.0.2 version. Backup copies of files, used by the Server, will be stored automatically. 2.Install the Server of version, which had been installed before upgrading and had been used to create backup copy. According to the general upgrade procedure, you should use all stored Server files except the DB file. Create a new DB during the Server installation. 3.Restore DB from the backup according to general rules (see procedures below). 4.Disable the Agent, the Server and the Network Installer protocols in the Server settings. To do this, select the item in the main menu and click in the control menu, go to the tab and clear corresponding flags. 5.Upgrade the Server to the 11.0.2 version according to general rules (see , p. Updating Dr.Web Enterprise Security Suite Software and Its Components). 6.Enable the Agent, the Server and the Network Installer protocols, disabled at the step 4.
To restore DB from backup 1.Stop Dr.Web Server if it is running. 2.Import the content of the database from the correspondent backup file. The command line will look as follows:
The command must be entered in a single line. It is presumed that Dr.Web Server is installed to the C:\Program Files\DrWeb Server folder. 3.Start Dr.Web Server. To restore DB from backup in case of changing Dr.Web Server version or corruption of the previous DB version 1.Stop Dr.Web Server if it is running. 2.Remove the current DB. To do this: 2.1. For the embedded DB: a)Remove database.sqlite file. b)Initialize a new database. In Windows the command line will look as follows:
The command must be entered in a single line (see also drwcsd command format with the initdb switch at the Appendix H4.3). It is presumed that Dr.Web Server is installed to the C:\Program Files\DrWeb Server folder and agent.key license key is located in D:\Keys. c)Once this command is executed, a new database.sqlite will be generated in the var subfolder of Dr.Web Server installation folder. 2.2. For the external DB: clean up the DB via the cleandb command (see Appendix H4.3). 3.Import the content of the database from the correspondent backup file. The command line will look as follows:
The command must be entered in a single line. It is presumed that Server is installed to the C:\Program Files\DrWeb Server folder. 4.Start Dr.Web Server. For UNIX OS 1.Stop Dr.Web Server. •for OS:
•for OS:
2.Remove database.sqlite from the following subfolder of Dr.Web Server installation folder: •for OS: /var/opt/drwcs/ •for OS: /var/drwcs/
3.Initialize the Server database. The command will look as follows: •for OS:
•for OS:
4.Once this command is executed, a new database.sqlite database will be generated in the var subfolder of Dr.Web Server installation folder. 5.Import the content of the database from the correspondent backup file. The command line will look as follows: •for OS:
•for OS:
6.Start Dr.Web Server: •for OS:
•for OS:
|