Skip to content

Instantly share code, notes, and snippets.

@siumhossain
Created September 1, 2025 15:20
Show Gist options
  • Save siumhossain/5afa3c869290b749d4166e5122e02fc7 to your computer and use it in GitHub Desktop.
Save siumhossain/5afa3c869290b749d4166e5122e02fc7 to your computer and use it in GitHub Desktop.
dump big db

Add memory and compression optimizations

Create backup with better memory management

BACKUP_DIR="mysql_backup_$(date +%Y%m%d_%H%M%S)"

mkdir -p "$BACKUP_DIR"

mydumper \
  -u spowner \
  -p "Kutus@@57" \
  -B livemcq \
  -t 2 \
  -o "$BACKUP_DIR/" \
  -c \
  -v 3 \
  --triggers \
  --routines \
  --events \
  --compress \
  --rows=10000 \
  --long-query-guard=7200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment