Last active
December 16, 2015 21:29
-
-
Save denislutz/5500438 to your computer and use it in GitHub Desktop.
Create database giving it the stamp for the latest day in the file
Adjust your user and database, as well as the path
This file contains hidden or 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/bash | |
$ENV_ID="stage0" | |
mkdir ~/db_dumps | |
mysqldump -u root -p databasename | gzip > ~/db_dumps/dump_projectx_$ENV_ID-`date +%F_%T`.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment