Expand my Community achievements bar.

SOLVED

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 Accepted Solution

Avatar

Correct answer by
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.

View solution in original post

1 Reply

Avatar

Correct answer by
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.