Skip to content

Instantly share code, notes, and snippets.

@Sheheriyar99
Sheheriyar99 / mysql-docker.sh
Created June 18, 2024 14:49 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@Sheheriyar99
Sheheriyar99 / mysql-docker.sh
Created June 18, 2024 14:49 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@Sheheriyar99
Sheheriyar99 / git-commands.md
Created February 11, 2024 14:49 — forked from LondheShubham153/git-commands.md
This Gist contains all the useful Git Commands

Git Commands

This Gist contains all the useful commands for Git

Build Status

Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.

If you are a developer and want to keep every version of your code/project (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use.

  • All the commands used for Git