google-cloud-platform - Any chance of restoring a deleted gcloud sql instance?
问题描述
Im obviously an idiot and I didn't sufficiently save data, but is there any chance of restoring a deleted gcloud sql instance that has been deleted, not just a db from backups because the whole instance has been deleted?
解决方案
如果您足够快,实际上可以恢复它们。即使 Google 说它们已被删除,它们也应该仍然存在。
如果您知道已删除数据库的名称,请运行以下命令以检查它们是否仍然存在
gcloud sql backups list --instance=deleted-db-name --project your-project-name
如果你能看到任何结果,你是幸运的。尽快恢复它们!
gcloud sql backups restore <backup-ID> --restore-instance=new-db-from-scratch-name --project your-project
就是这样!
更多信息:https ://geko.cloud/gcp-cloud-sql-how-to-recover-an-accidentally-deleted-database/
推荐阅读
- xamarin - 如何在 Xamarin.iOS 中使用 @selector
- apache-spark - 有效地找到给定向量的前 K 个余弦相似向量
- css - CSS:浮动:左或对齐:左有什么区别?
- java - 从 Spring Shell 执行操作系统命令
- javascript - AngularJS / 使用自定义方法替换 ng-click 和 ng-show 中的排序
- c# - 用于在 SqlServer 中插入的 Http Listener vs Web Api
- cryptography - 使用公钥加密的软件许可方法
- google-cloud-pubsub - google.cloud.pubsub_v1.PublisherClient 线程安全吗?
- python-3.x - 使用事件触发器停止电机 - L293D、Pi、Python
- ios - 获取IOS模拟器文本字段中的值