You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to check a cache for damage or to copy it safely while the daemon writes. Some of a cache can't be fetched again: messages deleted on Telegram stay only in the local copy (is_deleted = 1).
Proposed:
tg db check [--account] [--full]: PRAGMA quick_check (or integrity_check with --full) and the FTS5 integrity-check of message_search, reported with the stable error schema. A damaged search index can be rebuilt from messages_cache; say how.
tg db backup [--account] --out <file>: a consistent copy with VACUUM INTO, which works while the daemon runs and also compacts the copy.
A short "Recovery" section in the docs: what a damaged cache loses, what tg fetches again, and what only the local copy has.
Done when e2e tests cover a clean cache, a damaged search index and a backup taken while another connection writes, and the docs describe both commands. Related: #80.
Activity