Backup And Restore
Backup is required for following reason:
Taking CQ Backup:
There are two three type of backup mechanism available in CQ
Offline Backup:
Offline backup is as simple as taking snapshot backup of your file system. For this do following
Online Backup:
CQ provide feature of taking backup of your system while system is running. You can do this by UI.
Using CQ UI:
OR Using CRX UI:
OR Using curl command:
Hybrid backup:
Hybrid backup is combination of offline and online backup. In this you separate some folder from crx-quckstart folder and take backup of them separate. When CRX writes are happening tar files in file systems are locked, Thats why it is not a good idea to take a file system backup when system is running. However part of repository like "datastore" do not get locked during this process. Also in CQ datastore holds large binaries and hence it's size is biggest. If you are planning for Hybrid backup you have to follow following steps:
Separate DataStore in CQ
replace
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
With
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
<param name="path" value="<YOUR NEW PATH>"/>
</DataStore>
Restoring CQ Backup:
Detail information about taking and restoring CQ backup can be found from here