Skip to content

Instantly share code, notes, and snippets.

@juniorb2ss
Created April 26, 2016 13:28
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 juniorb2ss/3661141de3a0dbbeaa5b30c34d0062a7 to your computer and use it in GitHub Desktop.
Save juniorb2ss/3661141de3a0dbbeaa5b30c34d0062a7 to your computer and use it in GitHub Desktop.
#!/bin/sh
# script.sh
# Print the date
DATE=`/bin/date +%d-%m-%Y`
NANE="/your/path/$DATA.sql"
HOST=""
USER=""
PASSWORD=""
DATABASE=""
mysqldump -h $HOST -u $USER -p$PASSWORD $DATABASE > $NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment