auto data backup to azure storage account

arun kumar 66 Reputation points
2021-11-03T03:24:02.517+00:00

Hi Team

I am backing up MongoDB data to the local linux VM on daily. i need to upload that data to azure storage account on daily basis with out uploading manually by using AZCopy tool.

Please help me with auto backup of the data which is generating daily on the local VM to the storage account which should happen everyday.

Regards
Arun C V

Azure SQL Database
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,415 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. deherman-MSFT 23,741 Reputation points Microsoft Employee
    2021-11-03T16:39:33.767+00:00

    @arun kumar
    Considering using azcopy copy or azcopy sync in a crontab. This would allow you the upload the new or changed files directly to blob storage at your desired time. The below entry would copy the directory and its contents to blob storage every day at 1:00AM.

    0 1 * * azcopy copy '<local-directory-path>' 'https://<storage-account-name>.<blob or dfs>.core.windows.net/<container-name>/myBlobDirectory' --recursive  
    

    Hope this helps! Let me know if you have any issues or further questions.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. arun kumar 66 Reputation points
    2021-11-11T15:21:00.733+00:00

    Hi Deherman

    But AZCopy tool needs authentication each time when we need to copy data from VM to azure storage account and it is not happening automatically. i tried using azcopy in crontab but its not happening.

    Can you please suggest the solution to make it automate.

    Regards
    Arun C V

    No comments