Hacker News new | past | comments | ask | show | jobs | submit login

The '.backup' command also carries across the metadata too, so you don't lose things like 'application_id'¹.

I mention this as I once wasted a bunch of time trying to get a backup created from a '.dump | sqlite3' pipe to work before taking a proper look at the application code, and finally saw that it silently ignored databases without the correct 'application_id' or 'user_version'.

¹ https://www.sqlite.org/pragma.html#pragma_application_id




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: