Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

crx2oak - AEM 6.2 (linux box1) to 6.4 (linux box2)

Avatar

Level 2

I have downloaded crx2oak onto my local dev machine.

6.2 aem instance is on linux box1, 6.4 aem instance is on linux box2.  Following is the command that I ran from my local windows command prompt.

java -Xmx10g -jar crx2oak-1.8.6-all-in-one.jar user1@box1:/data/repository/segmentstore user1@box2:/opt/aem/crx-quickstart/repository/segmentstore --include-paths=/content/dam/assets/ --copy-versions=false --copy-orphaned-versions=false

I am getting Exception in thread "main" java.lang.IllegalArgumentException: Not a directory: error.

And ideas on how to use this tool on remote host paths?

Thanks,

1 Reply

Avatar

Level 4

You can’t use remote paths. You must use local paths.

To to do what you want to do, copy the full repository from box1 to box2 using for example scp or rsync to another location, like /data/source.

Then run the crx2oak tool on box2 using /data/source as input and /opt/aem/crx-quickstart/repository/segmentstore.

After that, you can delete /data/source on box2.