So I didn't realize my system drive had filled up... and TaskWarrior overwrote my 'pending.data' with a 0-byte copy. d-: I had worked SO hard to get all my tasks imported from various other notes (many of which I deleted along the way), and hadn't yet prepared for the possibility of data loss. Should've set it up to use my Dropbox... Grr... why doesn't TaskWarrior make ANY backup buy default? That data is so important, and yet so small and trivial to backup. ]-:<

Anyway, my 'undo.data' is totally intact and seems to contain all the information theoretically needed to reconstruct 'pending.data'. Has anyone ever written a script to do this, or does somebody have regex's I could use for conversion? Unfortunately right now I have no sample 'pending.data' to look at... d-:

OR: does anybody know of a simple Linux utility I can use to recover previous file versions? It's possible no data was overwritten, since the replacement is empty.


  • Things rolling already at the TaskWarrior forum: taskwarrior.org/boards/1/topics/1743 I've already got two good proposed solutions for recovery through 'undo.data', but I'd still be very interested in any raw data-recovery solutions. – Casey Jones Aug 5 '11 at 22:43
  • To quote myself in the aforementioned thread at the TaskWarrior forum: Linux file recovery tools all seem to be inordinately complex, at least compared to ones I used in my Windows days, such as 'Restoration' and Piriform's 'Recuva'. I'm somewhat familiar with how to use PhotoRec, but it operates on particular file extensions by searching for headers and offsets. Since I don't have a sample 'pending.data', it'd be helpful if somebody could either send me one or generate a PhotoRec extension: cgsecurity.org/wiki/Add_your_own_extension_to_PhotoRec – Casey Jones Aug 5 '11 at 22:46
task rc.merge.autopush=no merge /path/to/intact/undo.data

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.