This section describes the procedure for performing a hot backup.
- Backup Lucene.
- Backup database.
- Backup files.
Lucene indexes have to be backed up first and before the database because if new rows are added in the database after the Lucene backup is done, a Lucene reindex (AUTO) can regenerate the missing Lucene indexes from the database transaction data.
Database backup has to be done before backing up the files because if your database points to a missing file, then that node will be orphan. Also, if you have a file without the database data, this just means that the user has added the file too late to be included in a backup.
It is critical to perform hot backups in the following order of steps:
- Ensure that you have a backup-lucene-indexes directory under dir.root.
- Backup the database SkyVault is configured to use, using your database vendor's backup tools
- As soon as the database backup completes, backup specific subdirectories in the file system SkyVault dir.root
-
Store both the database and SkyVault
dir.root backups together as a single unit.
For example, store the backups in the same directory or in a single compressed file. Do not store the database and dir.root backups independently, as that makes it difficult to reconstruct a valid backup set, if restoration becomes necessary.
Note: Ensure that the cron generated in the backup-lucene-indexes does not run while you do the database backup. The backup-lucene-indexes generation should be finished when you start the database backup.