Oak offline compaction steps

Adobe CQ Jun 29, 2017
  1. Download oak-run jar from, http://mvnrepository.com/artifact/org.apache.jackrabbit/oak-run
    Use 1.2.11 for AEM 6.1
  2. Take backup,
    java –jar oak-run-*.jar backup crx-quickstart/repository/segmentstore backup/segmentstore
  3. Find all the checkpoints,
    java -jar oak-run-*.jar checkpoints crx-quickstart/repository/segmentstore
  4. Remove all the unreferenced checkpoints,
    java -jar oak-run-*.jar checkpoints crx-quickstart/repository/segmentstore rm-unreferenced
  5. Now, run the compaction of the tar files
    java -jar oak-run-*.jar compact crx-quickstart/repository/segmentstore
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.