Database Backup
There are two ways to do direct backups of the database: automatic and manual. In addition, the original source data files may be saved.
Automatic Backups
Automatic backups are configured through the administration web UI. When enabled, the backups are generated in subdirectories of the configured Backup Location named for the time of backup.
/data/rtda/db_backup/licmon
/data/rtda/db_backup/licmon/20230821_010000
Manual Backups
% vovdb_util backup /data/backup/licmon/2023Aug22_10AM
Source Data Backups
In addition to backing up the database directly, the source data files used to populate the database can be saved. The source files are located in licmon.swd/data and can be used to rebuild a database from scratch. No utility is provided to save these files.
Restore a Database from Backups
The procedure to restore from backup is the same whether the backup was generated automatically or manually.
- Ensure the current database is stopped, either through the web UI or via the command line.
-
Delete or move the existing database.
For example, if the database is located at /data/rtda/db/licmon, it can be moved with:
% mv /data/rtda/db/licmon /data/rtda/db/vnclicmon.bad
-
Copy or move the backup to the original database location.
# Using the example of an automatic backup from above. % mv /data/rtda/db_backup/licmon/20160821_010000 /data/rtda/db/vnclicmon # Using the example of a manual backup from above. % mv /data/backup/licmon/2016Aug22_10AM /data/rtda/db/vnclicmon
- Restart the database.
Rebuild a Database from Source Data Files
- Ensure the current database is stopped, either through the web UI or via the command line.
-
Delete or move the existing database.
For example, if the database is located at /data/rtda/db/licmon, it can be moved with:
% mv /data/rtda/db/licmon /data/rtda/db/vnclicmon.bad
-
Reload the source data files.
% vovproject enable licmon % lmmgr loaddb