Skip to content

Steps Take Down Server

Zayyana Khoir edited this page Aug 2, 2021 · 1 revision
  • Backup database production : pg_dump -U postgres -h mtu.clwymxkzujl0.ap-southeast-1.rds.amazonaws.com -p 5432 -d mtu > dbexport.pgsql-24-Mei-2021

  • Download it to local : scp -i ~/.ssh/mtu.pem ubuntu@mtu-aws-web:/home/ubuntu/projects/mtu/.pg-backups/dbexport.pgsql-24-Mei-2021 ~/Downloads

  • Take snapshot for each server

    • EC2 Server
      • Go to Elastic Block Store on sidebar -> Click Snapshot -> Choose server
      • Then delete EC2 Server
    • RDS Server
      • Go to Snapshot menu on sidebar -> Click Take Snapshot -> Choose server
      • Then delete RDS Server
    • ElastiCache Server
      • Go to Redis menu on sidebar -> Choose server -> Click Action -> Backup
      • Then delete Redis Server
  • If there is mongodb server

    • Go to menu databases -> Click database name -> Click tab backup -> Take snapshot -> Download Snapshot
    • Then terminate database
  • Upload database postgres & mongodb to Google Drive Project

Clone this wiki locally