AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.
If your AEM forms implementation stores additional custom data in a different database, you must implement a strategy to back up this data ensuring that it remains in sync with the AEM forms data. Also, the application must be designed so that it is robust enough to handle a scenario where the additional databases get out of sync. It is highly recommended that any database operation that is performed is done in the context of a transaction to help maintain a consistent state.
You need to back up the following parts of the AEM forms system to recover from any error:
You need to backup any other data that is being used by your AEM forms setup, such as customer fonts, connecters data, and so on.
This topic discusses the following strategies to back up any AEM forms clustered environment:
Shut down the entire cluster and related services. (see Starting and stopping services)
On any node, back up the database, GDS, and Connectors. (see Files to back up and recover)
Perform the following steps to back up AEM repository offline:
For detailed steps, see Backup and Restore.
Back up any other data, such as customer fonts.
Start the cluster again.
Enter the rolling backup mode. (see Entering the backup modes)
Note that we need to leave the rolling backup mode after a recovery.
Shut down any of the secondary nodes of the cluster with respect to AEM. (see Starting and stopping services)
On any node, back up the database, GDS, and Connectors. (see Files to back up and recover)
Perform the following steps to back up AEM repository offline:
For detailed steps, see Backup and Restore.
Back up any other data, such as customer fonts.
Start the cluster again.
Enter the rolling backup mode. (see Entering the backup modes)
Note that you need to leave the rolling backup mode after a recovery.
Shut down any of the secondary nodes of the cluster with respect to AEM. (see Starting and stopping services)
On any node, back up the database, GDS, and Connectors. (see Files to back up and recover)
Perform the following steps to back up AEM repository online:
Back up any other data, such as customer fonts.
Start the cluster again.
When we create an AEM cluster, a properties file is created in the application server for all secondary nodes. It is recommended to back up the Bootstrap properties file. You can find the file at the following location on your application server:
You need to back up the file for disaster recovery scenario of AEM secondary node and replace it at the specified location on the application server, if restored.
In case of any failure of the entire cluster or a single node, you need to restore it using the backup.
For a single node recovery, you just need to shut down the single node and run the single node recovery procedure.
In case the entire cluster fails due to failures like database crash, you need to perform the following steps. Restoration depends on the method of backup used.
Stop the corrupted node.
If the corrupted node is an AEM primary node, shut down the entire cluster node.
Re-create the physical system from a system image.
Apply patches or updates to AEM forms that were applied since the image was made. This information was recorded during the backup procedure. AEM forms must be recovered to the same patch level as it was when the system was backed up.
(Optional) If all other nodes are working fine, it is possible that the AEM repository is alsocorrupted. In this case, you will see a repository unsync message in the error.log file of the AEM repository.
To restore the repository, perform the following steps.
If a zipped crx-repository backup was taken online, unzip it at any location and follow the offline restoration process.
Consider the following points:
Stop all the cluster nodes.
Recreate the physical system from a system image.
Apply patches or updates to AEM formsAEM formsthat were applied since the image was made. This information was recorded in step 1 of the backup procedure. AEM forms must be recovered to the same patch level as it was when the system was backed up.
Restore the database, GDS, and Connectors.
Do the following to recover the AEM repository offline:
If a zipped crx-repository backup was taken online, unzip it at any location and follow the offline restoration process.
Consider the following points:
The publisher node does not have any primary-secondary relationship in a clustered environment. You can take backup of any Publisher node by following Backup and Restore.