简体   繁体   English

Azure存储帐户文件版本

[英]Azure Storage Account File Versions

I need to back up our Azure File Storage shares (and preferably blobs too). 我需要备份我们的Azure文件存储共享(最好也是blob)。 I have set up a nightly automation task to use AzCopy to replicate the storage account to another one. 我设置了一个夜间自动化任务,以使用AzCopy将存储帐户复制到另一个帐户。 However, this doesn't give us the granularity of historical backups that we need (eg restoring a file or folder from 2 weeks ago). 但是,这不能为我们提供所需的历史备份的详细程度(例如,从2周前还原文件或文件夹)。 I've been thinking about pushing the contents of the storage account to an S3 bucket which does of course support versioning...but I was hoping someone has already solved this within the bounds of Azure... 我一直在考虑将存储帐户的内容推送到S3存储桶中,该存储桶当然支持版本控制...但是我希望有人已经在Azure的范围内解决了这个问题...

For this there are snapshots available. 为此,有可用的快照。 https://www.simple-talk.com/cloud/platform-as-a-service/azure-blob-storage-part-7-snapshots/ https://www.simple-talk.com/cloud/platform-as-a-service/azure-blob-storage-part-7-snapshots/

With AzCopy you can add the snapshot option. 使用AzCopy,您可以添加快照选项。 http://blogs.msdn.com/b/windowsazurestorage/archive/2013/04/01/azcopy-using-cross-account-copy-blob.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2013/04/01/azcopy-using-cross-account-copy-blob.aspx

Here ( https://msdn.microsoft.com/en-us/library/azure/hh488361.aspx ) you can see how you can generate the url to a specific version of a file 在这里( https://msdn.microsoft.com/zh-cn/library/azure/hh488361.aspx ),您可以看到如何生成特定文件版本的url。

edit after questions: 在问题后编辑:

For files something like this: AzCopy /Source: https://myaccount1.file.core.windows.net/myfileshare/ /Dest: https://myaccount2.blob.core.windows.net/mycontainer/ /SourceKey:key1 /DestKey:key2 /S 对于类似这样的文件:AzCopy / Source: https ://myaccount1.file.core.windows.net/myfileshare/ /目的地: https ://myaccount2.blob.core.windows.net/mycontainer/ / SourceKey:key1 / DestKey:键2 / S

A good option would be to copy to a account which you generate every day like project-backups20160201 Here you can find the code to generate a storage account and get the key: https://msdn.microsoft.com/en-us/library/azure/hh264518.aspx https://msdn.microsoft.com/en-us/library/azure/ee460785.aspx 一个不错的选择是将其复制到您每天生成的帐户,例如project-backups20160201。在这里,您可以找到生成存储帐户并获取密钥的代码: https ://msdn.microsoft.com/zh-cn/library /azure/hh264518.aspx https://msdn.microsoft.com/zh-cn/library/azure/ee460785.aspx

that way you can easily find the correct file and you can also delete old backups in an easy way without the hassle of searching the correct snapshot. 这样,您可以轻松地找到正确的文件,并且还可以轻松地删除旧备份,而无需麻烦地搜索正确的快照。

If you don't mind paying for the service this could be a good solution. 如果您不介意为服务付费,那么这可能是一个不错的解决方案。 https://www.cherrysafe.com/Home/Features#storageBackup https://www.cherrysafe.com/Home/Features#storageBackup

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM