/
DB Dump - playground

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

 

Related content

Documents
Documents
Read with this
Database Dump and Restore Approaches
Database Dump and Restore Approaches
More like this
GIT Basics
GIT Basics
Read with this
Database Dump and Restore Approaches
Database Dump and Restore Approaches
More like this
eGov DevOps Ticketing process
eGov DevOps Ticketing process
Read with this
MongoDB Migration Doc v2.0
MongoDB Migration Doc v2.0
More like this