Undelete accidentally deleted records in Sqlite3

前端 未结 7 767
甜味超标
甜味超标 2020-12-19 09:01

As title, possible? I have by accident deleted another record due to my ugly html interface in FireFox. The bad thing is this record delete is a root folder which the progra

7条回答
  •  北海茫月
    2020-12-19 09:50

    Take a look at undark. I already used it. It it can export the rows (deleted or not) from a SQLite db file if the records were not overwritten. Last version here.

    The SQLite-Deleted-Records-Parser does not give the same type of output, but can be useful.

    And there are also some products like the SQLite Forensic Explorer, SQLite Repair, Sqlite Database Recovery and SQLiteDoctor.

    If you are a developer you can avoid having the same problem again using litereplica. It adds single-master replication to SQLite.

    But remember to enable the point-in-time recovery because as the transactions are replicated to the replicas an accidental command like DROP TABLE or DELETE FROM will also be replicated. With PITR you will be able to go to a previous point-in-time.

    Or use the Backup API regularly. Although it transfers the entire db on each backup.

    And remember: if you copy an SQLite file or use a regular backup approach while a transaction is active the copy can be corrupted.

提交回复
热议问题