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
BedrockMission!

Learn More

View all

Sign in to view all badges

migrate AEM 6.5 from windows to linux system

Avatar

Avatar
Validate 1
Level 1
KathyFeng
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
KathyFeng
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
KathyFeng
Level 1

17-12-2020

Hi team,

We have sandbox environments earlier setup on windows system. while later envs are decided to install linux system. To align the envs, we'd like to migrate the sandbox env from windows to linux. Would you please kindly suggest formal and easy way to do that? while the data store is about 33G. Thanks a lot.

View Entire Topic

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
kunal23
MVP

19-12-2020

You can setup the new AEM sandbox on Linux OS and to migrate the repository content you can use the oak-run utility. You can find more details in the following doc - https://jackrabbit.apache.org/oak/docs/migration.html 

KathyFeng
Thanks a lot for the reply. I tried with the oak-upgrade with default full paths. Now I am able to connect crx/de to verify the content is migrated successfully to linux. While I am not able to connect to start.html with error: Resource at '/aem/start.html' not found: No resource found. Not sure if any paths should be excluded which cuased the issue here. Appreciated your comments.
kunal23
It looks like there are some system packages which were not installed properly on Linux. Are you using Adobe Forms as well on your Windows machine? Adobe provides separate packages for Forms based on the target OS. I would recommend that you first do a basic Vanilla installation on Linux and then copy only the mutable content specific paths like /content, /etc using the oak-run utility. The oak-run accepts include-paths and exclude-paths params which can help you in copying only specific paths and not complete repository to target AEM instance.
KathyFeng
We do not use Adobe Forms now. Only the AEM 6.5 jar file, and mostly it runs as a DAM.
kunal23
I will still recommend that you migrate only the mutable paths via oak-run utility and not entire repo.
KathyFeng
Finally, I migrated the entire env from windows to Linux successfully via crx2oak jar file. Command as below:nohup java -jar crx2oak-1.10.0-all-in-one.jar sourcedir/crx-quickstart/repository targetdir/crx-quickstart/repository --copy-binaries --src-datastore=sourcedir/crx-quickstart/repository/datastore —datastore=targetdir/crx-quickstart/repository/datastore --copy-versions=true --copy-orphaned-versions=false &
kunal23
Great! finally you got it working.
KathyFeng
Summarize the migrate steps here: 1. Stop the running env on Windows 2. Compress the whole instance install folder. 3. Transfer the compress file to target Linux server. 4. Uncompress package 5. Download crx2oak jar file. 6. Run jar file to migrate.