Skip to content

Instantly share code, notes, and snippets.

@vbajpai
Created September 20, 2013 14:42
Show Gist options
  • Save vbajpai/6638603 to your computer and use it in GitHub Desktop.
Save vbajpai/6638603 to your computer and use it in GitHub Desktop.
safely copy a sqlite3 database
$ sqlite3 $DATABASE
sqlite> begin immediate;
<press CTRL+Z>
$ scp $DATABASE $REMOTE
$ exit
sqlite> rollback;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment