Backing up the AEM 6.5 Instance

Take a full backup of your AEM 6.5 instance if not already done.

Using the Oak-upgrade Tool for Content Migration

The Oak-Upgrade tool is executed via the command line, as shown here:

java -jar oak-upgrade-*.jar [options] /path/to/source/repository /path/to/destination/repository

Below are the essential commands and options:

Key Options

  • --include-paths: Specify subtrees to include in the migration. See this example for the command usage:

    java -jar oak-upgrade-*.jar --include-paths=/content/site /old/repository /new/repository
    
  • --exclude-paths: Exclude specific paths from migration. Be cautious while using this option - if the path exists on the target system, it will be removed. See this example for the command usage:

    java -jar oak-upgrade-*.jar --exclude-paths=/content/old_site /old/repository /new/repository
    
  • --copy-binaries: By default, oak-upgrade migrates only references to binaries, leaving the actual files in the original blob/data store. As a result, the new repository still relies on the source store for binaries. To migrate binaries along with the repository content, use the --copy-binaries parameter to copy all binary data to the new store, as shown below:

    java -jar oak-upgrade-*.jar \
    --copy-binaries \
    --src-datastore=/old/repository/datastore \
    --datastore=/new/repository/datastore \
    /old/repository \
    /new/repository