Skip to content

Instantly share code, notes, and snippets.

@gvital3230
Last active June 5, 2023 18:12
Show Gist options
  • Select an option

  • Save gvital3230/5f271c301cbed7ba3792607aff395b7c to your computer and use it in GitHub Desktop.

Select an option

Save gvital3230/5f271c301cbed7ba3792607aff395b7c to your computer and use it in GitHub Desktop.
[docker mysqldump] #docker #mysql
docker container exec -i $CONTAINER-NAME mysqldump -u $USER -p $DATABASE | gzip > $DATABASE-$(date +%F_%T).sql.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment