Created
September 12, 2013 18:08
-
-
Save kirang89/6541591 to your computer and use it in GitHub Desktop.
Getting schema and dump of an sqlite3 database
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
sqlite3 some.db .sch > schema.sql | |
sqlite3 some.db .dump > dump.sql | |
grep -v -f schema dump > data.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment