简体   繁体   English

需要将 Spanner 数据库从一个 GCP 项目迁移到另一个

[英]Need to migrate Spanner db from one GCP Project to another

I am looking for a tool which is capable of migrating GCP spanner databases from one project to another.我正在寻找一种能够将 GCP spanner 数据库从一个项目迁移到另一个项目的工具。 It would not be a regular migration that I am looking for, maybe once in 10 days migration would be done.这不是我正在寻找的常规迁移,也许每 10 天就会完成一次迁移。 Is there any tool that can help me with this?有什么工具可以帮我解决这个问题吗? I am using GOOGLE_STANDARD_SQL dialect in Spanner我在 Spanner 中使用GOOGLE_STANDARD_SQL方言

Migrating projects with no organization resource You can migrate a project that is not associated with an organization resourceinto an organization resource.迁移没有组织资源的项目 您可以将不与组织资源关联的项目迁移到组织资源中。 However, you can't change it back toNo organization using this process.但是,您无法将其改回无组织使用此过程。 If you have a project that isassociated with your organization resource and you want to revert it toNo organiza…如果您有一个与您的组织资源关联的项目并且您想要将其恢复为无组织......

If you want to migrate entire database, then create backup ( https://cloud.google.com/spanner/docs/backup ), copy backup to new project and then restore it in a spanner instance in that project.如果你想迁移整个数据库,然后创建备份( https://cloud.google.com/spanner/docs/backup ),将备份复制到新项目,然后在该项目的扳手实例中恢复它。 https://cloud.google.com/spanner/docs/backup/copy-backup https://cloud.google.com/spanner/docs/backup/copy-backup

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

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