war time data engineering

Disaster Backup Guide

To be honest, these days, with the constant sound of explosions echoing from all corners of the country, I don’t feel well—and writing a new blog post is the last thing on my mind.
But given the terrible situation we’re in and the urgent need to create backups of data stored on servers—or even keep them locally—I decided to publish this post. I hope it can be a small help in these circumstances.

In this post, I’ll cover the following topics. Let me know if you need anything else so I can add it:

  • PostgreSQL
  • MySQL
  • MongoDB
  • Elasticsearch
  • File transfer using rsync

These are just examples for each case, and I’ve tried to avoid unnecessary explanations. You certainly already know, for instance, never hard-code sensitive info like usernames and passwords.

PostgreSQL Backup using pg_dump

MySQL Backup using mysqldump

MongoDB Backup

Elasticsearch Backup

For parsing JSON, I’ve used the jq tool. If you’re using Ubuntu, you can install it with:

sudo apt install jq

Transferring Files with rsync

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *