The approach to backup and restore is to ensure that the repository is backed up before the Sync Service, so that a subsequent restore can simply remove any tracked repository changes that occurred after the repository backup.
-
To perform a backup of your Sync Service database, follow these steps:
- Backup your repository database. See Back up and restore section in Alfresco Content Services.
- After you have successfully backed up the repository, wait for a couple of minutes to ensure that the synchronization server has correctly tracked the repository after the repository backup.
- Alternatively, ensure that all undelivered events in the event queue, Consumer.<guid>.alfresco.repo.event2 have been delivered such that Messages Dequeued == Number Of Pending Messages. Here, guid is the synchronization server id, which can be determined from the syncServiceIdCheck in the health check response, https://localhost:9090/alfresco/healthcheck.
- Backup your synchronization service database using your database vendor’s backup/restore tools.
-
To perform a restore, follow these steps: