GKE cluster Restore for deleted backup paln - google-cloud-platform

I have created a backup plan for a test cluster and created a manual backup of cluster. I have restored the cluster to another cluster when cluster is alive with restore plan. when I have to test for disaster scenario, I have deleted original cluster, the backup plan associated with cluster also got deleted but backups are present.
when i tried to create a new restore plan it says only alive cluster backup plans will be selected. I have a backup of cluster but i can not restore into another cluster.
Any other solution to restore cluster with GKE Backup-restore agent in GCP in above scenario where backups are present but backup plans are not there.

Related

AWS Redshift Disaster Recovery - Is it possible to restore tables in another account to cluster provisioned by IAC?

Setting AWS Redshift disaster recovery plan. Ideally I would like to have the ability to restore table data to a new cluster (provisioned by IAC) in my DR account.
Sharing snapshots with the DR account I don't believe will work as restoring tables needs to take place within the cluster the snapshots were created from.
Restoring snapshots to a new provisioned cluster isn't ideal as that cluster creation takes place outside of our IAC.
I believe my only other option would be to use the COPY/ UNLOAD sql commands?
You can have your Redshift cluster automatically backed up to a second AWS Region. In case of failover to the second Region, you can restore the Redshift cluster there
If your IaC is CloudFormation, you can then bring the newly restored cluster into your IaC stack

Restoring snapshot to new EBS volume in Terraform

I'm looking at creating a disaster recovery script on AWS for restoring servers.
I've written the Terraform script to create a new EC2 instance, but I'd like to restore a snapshot from the old EBS volume to a new one and then attach that to the new EC2 instance.
I've been looking through Terraform though and can't see a way to restore a snapshot to a new volume, is it possible?

restoring aurora cluster from s3 or restoring from snapshot

well I have couple of questions. I have a aurora cluster with a single MySQL RDS instance which has 450GB of data. we use this cluster only when we are doing some specific testing.so I want to delete this cluster but keep its data available to me so I can make a new cluster whenever we need any testing to be done.
there are couple of ways this can be done as far as I know
take a snapshot of the cluster and restore the cluster from the
snapshot whenever required.
backup the cluster to s3 and restore the
cluster from s3 when required
which way is more faster and which one is more cost efficient?
can an entire cluster be restored from s3 if so what are the steps involved ? , I found the aws documentation bit too messy.
If we stop a aurora cluster, it again automatically restarts within 7 days , is there a way to prevent this automatic restart and keep it stopped when it is not required and start when required ?

AWS ElastiCache Redis- How to use most recent daily backup upon cluster (with just 1 node, no Multi-AZ) restart

According to AWS ElastiCache documentation, a cluster loses all its data upon reboot: https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/Clusters.Rebooting.html
When you reboot a cluster, the cluster flushes all its data and
restarts its engine. During this process you cannot access the
cluster. Because the cluster flushed all its data, when the cluster is
available again, you are starting with an empty cluster.
The automatic daily backups can only be used in a new cluster to get a warm-started cluster:
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-automatic.html
AOF file option has been disabled in Redis 2.8+ in AWS ElastiCache: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/RedisAOF.html
How do we make AWS ElastiCache use the most recent daily backup data upon hardware failure/restarts
I am looking for same thing but as of now it is not possible. Backup can only be used to build new cluster.

Terraform destroying RDS instance and retaining automated backups

I have created and I have been managing a Postgresql RDS instance using Terraform.
Assuming I perform a terraform destroy, will this also delete the associated RDS snapshots that have been taken via the RDS schedule?
Terraform added the option to keep the automated backups for an RDS with the delete_automated_backups flag. Just set this to false.
When destroying an RDS database you have the option to either create a long lived final snapshot or retain the automated backups which will be deleted as per the schedule they were set for:
Instead of creating a snapshot, you can choose to enable Retain automated backups when you delete a DB instance. These backups are still subject to the retention period of the DB instance and age out the same way systems snapshots do.
Terraform supports keeping a final snapshot by setting the final_snapshot_identifier and making sure that skip_final_snapshot is not set to true.
Unfortunately, Terraform doesn't currently support retaining the automated backups taken from scheduled snapshots but there is an open feature request with a couple of half finished pull requests linked to it.