Skip to content

Instantly share code, notes, and snippets.

@dedeibel
Created June 12, 2012 21:25
Show Gist options
  • Save dedeibel/2920224 to your computer and use it in GitHub Desktop.
Save dedeibel/2920224 to your computer and use it in GitHub Desktop.
restore / sanitize sqlite databases
for i in *.sqlite ; do echo $i ; echo ".dump" | sqlite3 $i > $i.sql && rm $i && sqlite3 $i < $i.sql ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment