Skip to content

Instantly share code, notes, and snippets.

@kingoamino
Last active April 5, 2020 18:46
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 kingoamino/32503c540106e373aa69f8b11d48b524 to your computer and use it in GitHub Desktop.
Save kingoamino/32503c540106e373aa69f8b11d48b524 to your computer and use it in GitHub Desktop.
Back UP database
# Create a dump to Dump_date.sql
mysqldump --databases -h 'host_DB' 'DataBase name' -u 'User' -p 'Passwd' > /var/www/BackUP/Dump_$(date +"%m-%d-%y").sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment