Skip to content

Instantly share code, notes, and snippets.

@srghma
Created March 6, 2018 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srghma/b6220f7439334bd98f0b3908538f5191 to your computer and use it in GitHub Desktop.
Save srghma/b6220f7439334bd98f0b3908538f5191 to your computer and use it in GitHub Desktop.
mysql dump
export DB_NAME=
export DB_USER=
mysqldump -p -u "$DB_USER" "$DB_NAME" | gzip > "$HOME/$DB_NAME-backup-$(date +%F).sql.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment