Get up to 50% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

How to Create Scheduled Snapshots in Google Cloud Platform

How to Create Scheduled Snapshots in Google Cloud Platform

Yes, your server and data are on cloud, but to avoid the risk of unexpected data loss still you need to follow standard backup mechanisms provided by cloud providers like snapshots or replication. The best way is to take the disk snapshots – Operating System disk as well as data disks . And the best part is Scheduled Snapshots by which you don’t need to worry about regular snapshots. Here see a simple demo for scheduled snapshots in Google Cloud Platform.

Also read : How to add Container Images to Google Container Registry (GCR)

Create Snapshot Schdule

First of all we need to create snapshot schedule and define when to take snapshots, where to keep it, how long you need to retain the snapshots etc.

Goto Computer Engine -> Snapshots -> Select Create Snapshot Shedules

Provide name and description for the schedule and also choose region if you want to keep it at some specific place.

Also choose the frequency as Hourly, Daily or Weekly and when to take the snapshot. In below example we have selected to take weekly backup on every Tuesday between 3 – 4 AM. Also set to delete snapshots older than 30 days.

Create the schedule and see details.

You can do the same via gcloud console or using API as well, refer GCP document for the same.

Attach Snapshot Schedule to a Disk

So we have a schedule created to take snapshot in specific intervals and now we need to select which disk we need to take snapshot of. Goto Disks tab and select the disk you want to attach the snapshot schedule.

You can see, the disk is used by myserver-101 (which is my VM) but no snapshot schedules attached.

Now, click on disk and you can see the disk details; then click on Edit button on top and attach snapshot schedule, and then Save.

That’s all, now you have your weekly automated snapshots mechanism which will take snapshot every Tuesday and will delete older snapshots automatically.

Since every snapshots will take some space on disk, please read GCP Pricing for Disks and Snapshots before you configure your snapshot schedules.

The post How to Create Scheduled Snapshots in Google Cloud Platform appeared first on techbeatly .

Share :

Related Posts

OpenShift Container Platform 3.11 Installation Documents

OpenShift Container Platform 3.11 Installation Documents

Since OCP 3.11 is available now, you may refer below documents for OpenShift Container Platform 3.11 Installation on different infrastructure or …

Ansible Tower – How to Backup and Restore

Ansible Tower – How to Backup and Restore

Image Background : datafloq.com Ansible Tower is a wonderful product which help to implement a central hub for IT automation. Ansible Tower is …

OpenShift Cluster – How to Drain or Evacuate a Node for Maintenance

OpenShift Cluster – How to Drain or Evacuate a Node for Maintenance

Image : www.oemoffhighway.com As we know OpenShift clusters are bundled with multiple compute nodes, master nodes, infra nodes etc, it’s not a big …

Running Ansible Ad-Hoc commands

Running Ansible Ad-Hoc commands

We have already run few ad-hoc command to list down the hosts in earlier sections.

Google Cloud Summit Kuala Lumpur 2018

Google Cloud Summit Kuala Lumpur 2018

Join Google Cloud Summit Kuala Lumpur 2018 and get learning experience and updates from industry experts.

How to Create, Increase or Decrease Project Quota in OpenShift

How to Create, Increase or Decrease Project Quota in OpenShift

Image Credit : https://www.joc.com Usually application owner or project owner will specify the quota settings (Memory and CPU) during project …