External Backups/Snapshots for Google Cloud Spanner

前端 未结 4 1677
轮回少年
轮回少年 2021-02-13 14:39

Is it possible to snapshot a Google Cloud Spanner Database/table(s)? For compliance reasons we have to have daily snapshots of the current database that can be rolled back to in

4条回答
  •  感情败类
    2021-02-13 14:57

    Today, you can stream out a consistent snapshot by reading out all the data using your favorite tool (mapreduce, spark, dataflow) and reads at a specific timestamp (using Timestamp Bounds).

    https://cloud.google.com/spanner/docs/timestamp-bounds

    You have about an hour to do the export before the data gets garbage collected.

    In the future, we will provide a Apache Beam/Dataflow connector to do this in a more scalable fashion. This will be our preferred method for doing import/export of data into Cloud Spanner.

    Longer term, we will support backups and the ability to restore to a backup but that functionality is not currently available.

提交回复
热议问题