How do I save TinyDB data across a factory reset?

You may find this project useful ...