Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created May 15, 2013 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deivisonarthur/5586771 to your computer and use it in GitHub Desktop.
Save deivisonarthur/5586771 to your computer and use it in GitHub Desktop.
#Deivison Arhur
# Formato da data dd-mm-yyyy format
backup_date=`date +%Y_%m_%d_%H_%M`
mysqldump -h seuRDS.rds.amazonaws.com -uuser -psenha --single-transaction banco | gzip -9 > db1.${backup_date}.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment