Skip to content

Instantly share code, notes, and snippets.

@jro
Created January 27, 2009 00:47
Show Gist options
  • Save jro/53086 to your computer and use it in GitHub Desktop.
Save jro/53086 to your computer and use it in GitHub Desktop.
mysqldump -u root -p --tables some_table other_table \
--where='created_at BETWEEN DATE_SUB(NOW(), INTERVAL 8 DAY) AND NOW()' > awesome_dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment