Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MarkLogic - Can we configure scheduled backup on Azure Blob

We want to configure schedule backup for database.

We have set storage account and access key for Azure Blob in security-> Credentials for Azure.

In backup directory, when enter azure://containName This container name is exist in given storage account.

In response it says The directory azure://backup/ does not exist on host ml01. Would you like to try and create it?

Can anybody please help me to configure?

like image 409
Manish Joisar Avatar asked Oct 16 '22 13:10

Manish Joisar


2 Answers

It sounds like you want to create a work job which backup the data of your MarkLogic Database to Azure Blob Storage and trigger by a time schedule. Right? I do not completely understand what you said, so here just my suggestion below.

I'm not familar with MarkLogic, but I think you can write a script for NodeJS or a Java program to do the backup work, after I read the tag info for marklogic and I see it supports the client API for Node and Java.

As I known, there are three ways normally to deploy it on Azure if you are ready to backup in programming.

  1. You can deploy it as a webjob with a cron expression to trigger the backup work, please refer to the offical document Run Background tasks with WebJobs in Azure App Service.
  2. You can deploy it as a Web API on Azure by using the service like WebApp, and use Azure Scheduler to trigger it.
  3. You can deploy it as an Azure Function and trigger it with timer trigger, please refer to the offical document Create a function in Azure that is triggered by a timer.

Ofcourse, there are other services can help to realize your needs. I don't know what the best for you is. If you have any concern, please feel free to let me know.

like image 142
Peter Pan Avatar answered Oct 20 '22 17:10

Peter Pan


I was running into similar issue and was able to resolve it.

Create something side your container within a folder. so your structure should look like this

azure://containername/folder

I just was able to resolve my issue by doing that.

like image 26
Jacob Avatar answered Oct 20 '22 17:10

Jacob