LiteDB icon indicating copy to clipboard operation
LiteDB copied to clipboard

Is it safe to copy litedb file when it is used by a process

Open HolyOne opened this issue 3 years ago • 1 comments

Can you clarify if it is safe to copy the Litedb file when the process is running? I need a safe way to backup litedb files while my website is running.

If it is not safe to copy (if there is a possibility it produces a corrupt source or destination file) I think we need a backup solution for it in the .net library

HolyOne avatar Jan 18 '22 20:01 HolyOne

Hi @HolyOne, it's not safe to copy the datafiles while the database is open. Currently there is no such option for a hot backup, it's something already requested though. It's on the feature request list for next LiteDB versions.

kcsombrio avatar Jan 18 '22 21:01 kcsombrio