<p>I am running database inside Kubernetes pod. i am planning to run K8s job to take automatic backup of databases from pod.</p>

<p>There is also i can write shell script to take snapshot of volume(PV).</p>

<p>which method will be better to use? in emergency which one will save time restore data ?</p>

<p>You can use <a href="https://appscode.com/products/stash/" rel="nofollow noreferrer">Stash by AppsCode</a> which is a great solution to backup Kubernetes volumes.</p>

<p>For supported versions check <a href="https://github.com/appscode/stash#supported-versions" rel="nofollow noreferrer">here</a></p>

<blockquote>
  <p>Stash by AppsCode is a Kubernetes operator for restic. If you are
  running production workloads in Kubernetes, you might want to take
  backup of your disks. Traditional tools are too complex to setup and
  maintain in a dynamic compute environment like Kubernetes. restic is a
  backup program that is fast, efficient and secure with few moving
  parts. Stash is a CRD controller for Kubernetes built around restic to
  address these issues.
  Using Stash, you can backup Kubernetes volumes mounted in following
  types of workloads:</p>
  
  <p>Deployment, DaemonSet, ReplicaSet, ReplicationController, StatefulSet</p>
</blockquote>

<p>After installing stash using <a href="https://appscode.com/products/stash/0.8.3/setup/install/#using-script" rel="nofollow noreferrer">Script</a> or <a href="https://appscode.com/products/stash/0.8.3/setup/install/#using-helm" rel="nofollow noreferrer">HELM</a> you would want to follow 
Instructions for <a href="https://appscode.com/products/stash/0.8.3/guides/backup/" rel="nofollow noreferrer">Backup</a> and <a href="https://appscode.com/products/stash/0.8.3/guides/restore/" rel="nofollow noreferrer">Restore</a> if you are not familiar</p>

<p>I find it very useful</p>
