Created
July 11, 2017 09:41
-
-
Save l1x/a67e35d63b85359bd9d4c686be9eb9af to your computer and use it in GitHub Desktop.
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
mysql --database=achoo_backend --execute="show tables" --silent --batch | while read tablename ; do | |
echo "mysqldump --where="1=1 ORDER BY id DESC LIMIT 200" achoo_backend $tablename > $tablename.sql" ; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment