Package: magicrescue
Severity: wishlist
Tags: patch

$Subject.  Happily recovered about handred database backups that
survived google-wipe.

-- 
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
--- ../foo.kMK5Np.recipe	2013-11-19 20:03:53.000000000 +0200
+++ magicrescue/recipes/sqlite	2013-11-19 20:03:53.000000000 +0200
@@ -0,0 +1,8 @@
+# Extracts sqlite databases
+0 string SQLite format 3\x00
+extension sqlite
+
+# Result will be "CREATE TABLE"'s and "INSERT INTO"'s
+allow_overlap -1
+#min_output_file 1024
+command dd bs=1M count=16 of="$1.with-trash" 2>/dev/null; sqlite3 -init /dev/null "$1.with-trash" .dump >"$1" ; rm -f "$1.with-trash"

Reply via email to