For QA, testing purposes or regular release cycles it might be useful to take a snapshot of an existing CQ5 instance such as one already running in production and use it as a clone.
This article describes what steps are required to create a CQ5 clone and run it independently. Please note that this procedure assumes that CQ5 is running out of the box with Day's CQ Servlet Engine and quickstart capabilities.
CQ5 comes with CRX as its underlying repository which in turn offers an online backup  feature. This allows for easy creation of snapshots while guaranteeing uptime of the instance to be cloned. The zip-file created by the backup process contains the complete instance.
.lockfiles (if existing)
optimize*.tarfiles (if existing)
lock.propertiesfiles (if existing)
After this procedure has finished, following list of items need to be checked:
CQ5.1, CQ5.2, CQ 5.3
 Online Backup