Rsync / Sqlite database

rsyncsqlite

Does anyone have ever tried rsync'ing sqlite database?

Is it possible to access the data while it gets syncronised?

Best Answer

I would consider this dangerous.

The SQLite database also has journal files that need to be preserved.

If you

  • rsync the database without the journal files in the middle of a transaction
  • copy the database file
  • access the copy

It is highly likely that you will experience corruption.

Use the SQLite Online Backup API instead.

Related Topic