Created
April 25, 2023 00:40
-
-
Save WebSofter/fe5d8c3083667c003bf4e91fae739baf to your computer and use it in GitHub Desktop.
Export mysql dump with command bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
location=./`date +%Y%m%d_%H%M%S`_your_db.sql | |
mysqldump -u root --password='your_password' your_db > $location | |
gzip $location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment