Advanced Replication Guide : Administering advanced replication systems : Performing backup and recovery
  
Performing backup and recovery
To ensure that data is secure in the event of a system failure, always back up the master and possibly also the replica databases on a periodic basis.
Backup guidelines
The normal disaster prevention and recovery tasks you use on a non-synchronized solidDB® database also apply to synchronized databases.
– You should automate backups to run during non-busy hours.
– For protection against disk crashes, after completing the backup, copy your backup files on tape or other media using your backup software.
– You can make an online backup of any database of a solidDB® system. Upon recovery, solidDB® uses transaction log files to roll forward the backup database from the state of the backup to the state of the last committed transaction. The last persistent state of the synchronization is also restored at that time.
Because the master database has the official version of data and the data in the replicas are tentative, do not use a replica database as a backup for the master database. The last persistent state of a master database can be restored only from the backup files of the master database itself.
If the master database is recovered from a backup without data loss (rollforward recovery is able to recover all the transactions from the log files), synchronization can proceed normally.
If the master database is recovered with data loss, for example, due to missing transaction logs, the data loss is reflected in the replicas during the next refresh. If synchronization data is not in sync between the master and replicas, a full publication (all data in the publication) is sent to the replica database during the next refresh. This occurs regardless of whether the tables in the publication are set for incremental publication.
A replica database can be reconstructed in the following ways:
– Restore the database from the backup of the replica database. Creating backups of the replica database is useful if the database is a large one and there is disk space available for the backup.
– Re-create the replica and refresh the data from the master database.
Recreating the replica database is useful if the replica database is a small one and there is no local-only data in the replica database.
When you restore any backup of a solidDB® database, make sure that the restore is rolling forward all transactions to the latest committed transaction. This ensures that the synchronization continues from the point where it was at the time of the database failure.
Once the restore is complete, verify that any possible ongoing synchronization messaging has been completed successfully in both the master or replica database.
For instructions on checking for synchronization errors, see Monitoring the status of synchronization messages.
For instructions on correcting stopped synchronization messages, see Managing synchronization errors.
See also
Administering advanced replication systems