Reputation: 2112
In AWS, a similar functionality exists using awscli
as explained here. Does there exist a similar functionality in Azure using Python SDK or CLI? Thanks.
Upvotes: 1
Views: 5055
Reputation: 23782
There are two services Blob Storage
& File Storage
in Azure Storage, but I don't know which one of Azure Storage services is you want to be synchronised with a folder and what OS you used is.
As @Gaurav Mantri said, Azure File Sync is a good idea if you want to synchronise a folder with Azure File Share on your on-premise Windows Server.
However, if you want to synchronise Azure Blobs or some Unix-like OS you used like Linux/MacOS, I think you can try to use Azure Storage Fuse
for Blob Storage or Samba client for File Storage with rsync
command to achieve your needs.
First of all, the key point of the workaround solution is to mount the File/Blob service of Azure Storage as a local filesystem, then you can operate it in Python/Other ways as same as on local, as below.
blobfuse
, then to configure & run the necessary file/script to mount a blob container of Azure Storage account as the wiki page said.Then, you can directly operate all data in the filesystem of blobfuse mounted or samba mounted, or to do the folder synchronisation with rsync
& inotify
command, or to do other operations if you want.
Hope it helps. Any concern, please feel free to let me know.
Upvotes: 5