Created
September 20, 2013 14:42
-
-
Save vbajpai/6638603 to your computer and use it in GitHub Desktop.
safely copy a 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 $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