简体   繁体   English

Azure 表存储备份

[英]Azure Table Storage Backup

In my azure subscription I have a storage account with a lot of tables that contains important data.在我的 azure 订阅中,我有一个存储帐户,其中包含许多包含重要数据的表。 As far as I know azure offers a backup point-in-time for the storages and blobs, and geo redundancy in event of a failover.据我所知,azure 为存储和 blob 提供备份时间点,并在发生故障转移时提供地理冗余。 But I couldn't find anything regarding the backup of table storages.但是我找不到任何有关表存储备份的信息。 The only way to do so is by using azCopy which is fine and a logic, but I couldn't make it work as I had some issues with permissions even if I set the Azure Blob Data Contributor to my container.这样做的唯一方法是使用azCopy ,这很好且符合逻辑,但我无法使其工作,因为即使我将Azure Blob Data Contributor设置为我的容器,我也遇到了一些权限问题。

So as an option, I was thinking if there is a way how to implement this using python code to loop throu all the tables in a specific container and make a copy into another container.因此,作为一种选择,我在想是否有一种方法可以使用 python 代码来实现这一点,以循环遍历特定容器中的所有表并将副本复制到另一个容器中。

Can anyone enlighten me on this matter please?任何人都可以在这个问题上启发我吗?

Did you set the Azure Storage firewall: allow access from all networks?:您是否设置了 Azure 存储防火墙:允许从所有网络访问?: 在此处输入图像描述

Python code is a way but we can't help you design the code. Python 代码是一种方法,但我们无法帮助您设计代码。 And there isn't an example for you.而且没有给你的例子。 It doesn't meet Stack Overflow's guideline.它不符合 Stack Overflow 的准则。

If you still couldn't figure it out with AzCopy , I would suggest you think about use Data Factory to schedule backup the data from table storage to another container.如果您仍然无法使用AzCopy ,我建议您考虑使用数据工厂来安排将数据从表存储备份到另一个容器。

  1. Create a pipeline with copy active to copy the data from Table Storage.创建一个具有复制活动的管道以从表存储复制数据。 Ref this tutorial: Copy data to and from Azure Table storage by using Azure Data Factory .参考本教程: 使用 Azure 数据工厂将数据复制到 Azure 表存储和从中复制数据
  2. Create a schedule trigger for the pipeline to make the jobs automatic.为管道创建计划触发器以使作业自动化。

If the Table storage has many tables, the easiest way is using Copy Data Tool .如果表存储有很多表,最简单的方法是使用复制数据工具

Update:更新:

Copy data tool source settings:复制数据工具源设置:

在此处输入图像描述

Sink settings: auto create the table in sink table storage接收器设置:在接收器表存储中自动创建表

在此处输入图像描述

HTH. HTH。

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

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