Issue
- Is it safe to perform a hot backup of the Liferay database while the server is still running? What are the risks involved, especially concerning data consistency?
Environment
- Liferay DXP (Quarterly Release)
Resolution
- Performing a hot backup while the server is running can lead to data inconsistencies if transactions are in progress during the backup process.
- It is recommended to perform the backup with the application server stopped. If stopping the server isn’t feasible, schedule backups during periods of low activity to minimize the risk of inconsistencies.
- A possible workaround to minimize inconsistencies during a hot backup is to temporarily remove edit permissions on assets (content, documents, pages, etc.) for specific user roles. After completing the backup, restore the edit permissions and be aware if any background task will be running at this time.
Additional Information
Refer to the official documentation on Backup Service for more details.