crx2oak - AEM 6.2 (linux box1) to 6.4 (linux box2) | Community
Skip to main content
sai_nagabethini
Level 2
December 4, 2018
Solved

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

  • December 4, 2018
  • 1 reply
  • 1409 views

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by wimsymonsvrt

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.

1 reply

wimsymonsvrtAccepted solution
Level 4
December 5, 2018

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.