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

Issues in Migrating AEM Data Store to Azure Blob Storage

Avatar

Avatar
Boost 1
Level 1
Gaurav-Raheja
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Gaurav-Raheja
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Gaurav-Raheja
Level 1

05-05-2021

I am able to start a new AEM instance with binaries saved in Azure Blob Storage.

But now I wanted to move my existing AEM File Datastore to Azure Blob Storage.

I am using oak-upgrade-1.10.2.jar to migrate my local AEM data store to Azure. I am using this command to do that 

java -jar oak-upgrade-1.10.2.jar --copy-binaries --src-datastore= crx-quickstart/repository/datastore --azureconfig=org.apache.jackrabbit.oak.plugins.blob.datastore.AzureDataStore.config --azuredatasource=az:https://<my-account>.blob.core.windows.net/aem-migrate crx-quickstart/repository az:https://<my-account>.blob.core.windows.net

 

But I am getting error as azureconfig is not a recognized option.

I have checked https://jackrabbit.apache.org/oak/docs/migration.html#Migrating_blob_store also, but here only S3 configs are described and not the azure ones.

Has anyone has any leads in migration of existing binaries to Azure. Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

388 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

388 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

05-05-2021

Here is the command what worked for me:

java -jar ./oak-upgrade-1.10.jar \
    --copy-versions=false --copy-binaries \
    --src-datastore=/CQ/63latest/crx-quickstart/repository/datastore \
    --azureconfig=/CQ/63migrationtemp/crx-quickstart/install/org.apache.jackrabbit.oak.plugins.blob.datastore.AzureDataStore.config \
    --include-paths=/content/dam/migrationtest \
    /CQ/63latest/crx-quickstart/repository \
    /CQ/63migrationtemp/crx-quickstart/repository

Answers (2)

Answers (2)

Avatar

Avatar
Boost 1
Level 1
Gaurav-Raheja
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Gaurav-Raheja
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Gaurav-Raheja
Level 1

06-05-2021

Thank you @jbrar @Vijayalakshmi_S for your help.

Yes the solution provided by @jbrar worked for me with using oak-upgrade-1.24.0.jar(as specified by @Vijayalakshmi_S) instead of 1.10.0 version as this version wasn't accepting azureconfig as an option.

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

518 likes

Total Posts

654 posts

Correct Reply

215 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

518 likes

Total Posts

654 posts

Correct Reply

215 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

05-05-2021

Hi @Gaurav-Raheja,

Use oak-upgrade jar version 1.24.0 and/or above

Available versions list - https://mvnrepository.com/artifact/org.apache.jackrabbit/oak-upgrade