Oak offline compaction steps

  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
Show Comments