Skip to content

Instantly share code, notes, and snippets.

@AmmarCodes
Created November 21, 2018 12:01
Show Gist options
  • Save AmmarCodes/73ccfe522f21c6f4d2de4aa8bfdc6ee6 to your computer and use it in GitHub Desktop.
Save AmmarCodes/73ccfe522f21c6f4d2de4aa8bfdc6ee6 to your computer and use it in GitHub Desktop.
USERNAME=
PASSWORD=
DBNAME=
mysqldump -u $USERNAME -p$PASSWORD $DBNAME | gzip > $DBNAME.sql.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment