Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Backup of persistent volume

Good Morning

I have K8s POD running with Docker container with Persistent volume of around 500GB. In order to backup this volume data I have mount external NAS Storage  to Container using "Volume Mount" . copy file from PV to NAS Mount using K8s Schedular .However backup takes hours and hours. Both K8s Cluster and NAS storage are on same network and zone.

Is there any cloud native backup approach I use to backup my data on PV like Volumesnapshot or CSI etc. I am looking for K8s native inbuilt functionality as much as possible .

Please advice

Good Day

Solved Solved
0 2 594
1 ACCEPTED SOLUTION

Hi @avindia,

Welcome to Google Cloud Community!

If  you’re looking for a Cloud native Backup approach, you might consider using these two options for backup and recovery solutions:

  1. Velero 

Gives you tools to back up and restore your Kubernetes cluster resources and persistent volumes. You can run Velero with a cloud provider or on-premises. Velero lets you:

  • Take backups of your cluster and restore in case of loss.
  • Migrate cluster resources to other clusters.
  • Replicate your production cluster to development and testing clusters.

Here’s  the comprehensive guide for Kubernetes backup and restore

        2. GKE Filestore 

A fully-managed file storage service that provides a high-performance and scalable file system for applications running on GKE. 

  • As a type of durable or non-ephemeral storage, your data persists beyond the lifecycle of your GKE Pods.
  • As durable storage with ReadWriteMany access, your GKE PersistentVolumes can be mounted as read-write by many nodes.
  • Unlike the single read-write access mode inherent to Persistent Disk, Filestore instances are accessible from multiple GKE nodes simultaneously. This lets you initiate Pods on any available GKE node, giving you greater efficiency of your GKE clusters.
  • As a type of file storage, Filestore supports multiple concurrent application instances accessing the same file system, simultaneously.

Here’s the documentation for Back up Filestore storage using volume snapshots

I hope the above information is helpful.

View solution in original post

2 REPLIES 2

Hi @avindia,

Welcome to Google Cloud Community!

If  you’re looking for a Cloud native Backup approach, you might consider using these two options for backup and recovery solutions:

  1. Velero 

Gives you tools to back up and restore your Kubernetes cluster resources and persistent volumes. You can run Velero with a cloud provider or on-premises. Velero lets you:

  • Take backups of your cluster and restore in case of loss.
  • Migrate cluster resources to other clusters.
  • Replicate your production cluster to development and testing clusters.

Here’s  the comprehensive guide for Kubernetes backup and restore

        2. GKE Filestore 

A fully-managed file storage service that provides a high-performance and scalable file system for applications running on GKE. 

  • As a type of durable or non-ephemeral storage, your data persists beyond the lifecycle of your GKE Pods.
  • As durable storage with ReadWriteMany access, your GKE PersistentVolumes can be mounted as read-write by many nodes.
  • Unlike the single read-write access mode inherent to Persistent Disk, Filestore instances are accessible from multiple GKE nodes simultaneously. This lets you initiate Pods on any available GKE node, giving you greater efficiency of your GKE clusters.
  • As a type of file storage, Filestore supports multiple concurrent application instances accessing the same file system, simultaneously.

Here’s the documentation for Back up Filestore storage using volume snapshots

I hope the above information is helpful.

Thanks for the detailed response 

Top Labels in this Space