DB Dump - playground

Steps:

  1. kubectl exec <playground-pod-name> -it -n playground bash

  2. pg_dump -Fp --no-acl --no-owner --no-privileges -h  <db-host> egov_db -U dbusername > backup.sql | gzip > backup.sql.gz (inside the pod)

  3. kubectl cp <playground-pod-name>:/backup.sql.gz backup.sql.gz -n playground //copying to local machine