Ludovic Rousseau writes: > I checked the code and your description is not what is supposed to happen. > During restore jpilot will use the latest modified file between > ~/.jpilot/foobar and ~/.jpilot/backup/foobar.
> Are you sure jpilot behaved like you described and it is not a > misinterpretation on your side? Hi Ludovic, Thanks for your help on this. I did lose a goodly portion of my data (though backups saved all but one day), and the steps to reproduce are correct to the best of my recollection. It does appear that my reasoning as to the causes is incorrect. I did a little more looking. Here is an ls -lR of my .jpilot directory as of 4:00 AM on November 29. I keep my jpilot stuff in ~/palm/jpilot, and .jpilot is a symlink to that directory. (To get this listing, I unpacked the relevant backup into /var/tmp.) reidster:/var/tmp/palm/jpilot# ls -lR .: total 84 -rw-r--r-- 1 reid reid 0 Jan 27 2004 AddressDB.pc3 -rw-r--r-- 1 reid reid 718 Apr 13 2005 AddressDB.pdb -rw-r--r-- 1 reid reid 0 Nov 27 21:57 DatebookDB.pc3 -rw-r--r-- 1 reid reid 8973 Apr 13 2005 DatebookDB.pdb -rw-r--r-- 1 reid reid 0 Jan 27 2004 ExpenseDB.pc3 -rw-r--r-- 1 reid reid 473 Apr 13 2005 ExpenseDB.pdb -rw-r--r-- 1 reid reid 0 Jan 27 2004 Keys-Gtkr.pc3 -rw-r--r-- 1 reid reid 0 Jan 27 2004 Memo32DB.pc3 -rw-r--r-- 1 reid reid 363 Apr 13 2005 Memo32DB.pdb -rw-r--r-- 1 reid reid 0 Nov 27 21:57 MemoDB.pc3 -rw-r--r-- 1 reid reid 5162 Apr 13 2005 MemoDB.pdb -rw-r--r-- 1 reid reid 2102 Nov 28 22:00 Saved Preferences.prc -rw-r--r-- 1 reid reid 0 Nov 27 21:57 ToDoDB.pc3 -rw-r--r-- 1 reid reid 2138 Apr 13 2005 ToDoDB.pdb lrwxrwxrwx 1 reid reid 14 Dec 5 22:04 backup -> backup10311158 drwx------ 2 reid reid 4096 Apr 13 2005 backup04092348 drwx------ 2 reid reid 4096 Oct 31 11:59 backup10311158 drwx------ 2 reid reid 4096 Apr 9 2005 backup_removed -rw-r--r-- 1 reid reid 127 Sep 20 13:30 jpilot.alarms -rw-r--r-- 1 reid reid 0 Nov 28 22:00 jpilot.log -rw------- 1 reid reid 6 Sep 11 15:32 jpilot.pid -rw-r--r-- 1 reid reid 131 May 13 2004 jpilot.plugins -rw-r--r-- 1 reid reid 1588 Nov 28 22:00 jpilot.rc -rw-r--r-- 1 reid reid 0 Nov 28 22:00 jpilot_to_install -rw-r--r-- 1 reid reid 13861 Nov 28 22:00 next_id ./backup04092348: total 96 -rw-r--r-- 1 reid reid 718 Sep 11 2004 AddressDB.pdb -rw-r--r-- 1 reid reid 5990 Apr 5 2005 DatebookDB.pdb -rw-r--r-- 1 reid reid 473 Sep 11 2004 ExpenseDB.pdb -rw-r--r-- 1 reid reid 400 Sep 11 2004 Graffiti ShortCuts.prc -rw-r--r-- 1 reid reid 12769 Jun 6 2000 Graffiti.prc -rw-r--r-- 1 reid reid 363 Sep 11 2004 Memo32DB.pdb -rw-r--r-- 1 reid reid 4153 Apr 9 2005 MemoDB.pdb -rw-r--r-- 1 reid reid 80 Sep 11 2004 Net Prefs.prc -rw-r--r-- 1 reid reid 885 Sep 11 2004 NetworkDB.pdb -rw-r--r-- 1 reid reid 2084 Apr 9 2005 Saved Preferences.prc -rw-r--r-- 1 reid reid 30017 Apr 9 2005 ToDoDB.pdb -rw-r--r-- 1 reid reid 362 Feb 22 2005 npadDB.pdb ./backup10311158: total 124 -rw-r--r-- 1 reid reid 718 Apr 13 2005 AddressDB.pdb -rw-r--r-- 1 reid reid 9398 Jun 29 14:55 Bttr-Panel.prc -rw-r--r-- 1 reid reid 8440 Oct 31 11:58 DatebookDB.pdb -rw-r--r-- 1 reid reid 473 Apr 13 2005 ExpenseDB.pdb -rw-r--r-- 1 reid reid 400 Apr 13 2005 Graffiti ShortCuts.prc -rw-r--r-- 1 reid reid 12769 Apr 13 2005 Graffiti.prc -rw-r--r-- 1 reid reid 363 Apr 13 2005 Memo32DB.pdb -rw-r--r-- 1 reid reid 5038 Oct 30 20:37 MemoDB.pdb -rw-r--r-- 1 reid reid 986 Apr 13 2005 Net Prefs .prc -rw-r--r-- 1 reid reid 80 Apr 13 2005 Net Prefs.prc -rw-r--r-- 1 reid reid 885 Apr 13 2005 NetworkDB.pdb -rw-r--r-- 1 reid reid 2102 Oct 31 11:58 Saved Preferences.prc -rw-r--r-- 1 reid reid 36783 Oct 27 10:12 ToDoDB.pdb -rw-r--r-- 1 reid reid 5495 Oct 17 14:48 npadDB.pdb ./backup_removed: total 0 Note in particular palm/jpilot/*.pdb -- the last modified date is April 13, 2005, when in fact my previous sync was on November 28. And the files in backup10311158 seem to have newer timestamps, which would be consistent with your description of the behavior. When I finally got my data back, it was by retrieving the files in ~/palm/jpilot (with the April 13 timestamps) from backup and copying them into ~/palm/jpilot/backup10311158, then "File->Restore Handheld" and syncing. So despite the ancient timestamps, they did indeed hold my latest data. I did another experiment just now. Here is an ls -l of ~/palm/jpilot immediately before a sync: 66 [~/palm/jpilot]$ ls -l total 92 -rw-r--r-- 1 reid reid 0 Jan 27 2004 AddressDB.pc3 -rw-r--r-- 1 reid reid 718 Nov 30 14:41 AddressDB.pdb -rw-r--r-- 1 reid reid 405 Dec 5 20:19 DatebookDB.pc3 -rw-r--r-- 1 reid reid 9328 Nov 30 14:42 DatebookDB.pdb -rw-r--r-- 1 reid reid 0 Jan 27 2004 ExpenseDB.pc3 -rw-r--r-- 1 reid reid 473 Nov 30 14:41 ExpenseDB.pdb -rw-r--r-- 1 reid reid 0 Jan 27 2004 Keys-Gtkr.pc3 -rw-r--r-- 1 reid reid 0 Jan 27 2004 Memo32DB.pc3 -rw-r--r-- 1 reid reid 363 Nov 30 14:41 Memo32DB.pdb -rw-r--r-- 1 reid reid 0 Dec 4 22:41 MemoDB.pc3 -rw-r--r-- 1 reid reid 5308 Nov 30 14:42 MemoDB.pdb -rw-r--r-- 1 reid reid 2102 Dec 1 16:32 Saved Preferences.prc -rw-r--r-- 1 reid reid 0 Dec 2 21:10 ToDoDB.pc3 -rw-r--r-- 1 reid reid 2402 Nov 30 14:42 ToDoDB.pdb lrwxrwxrwx 1 reid reid 14 Nov 30 14:43 backup -> backup11301443 drwx------ 2 reid reid 4096 Nov 30 14:42 backup10311158 drwx------ 2 reid reid 4096 Nov 30 14:43 backup11301443 drwx------ 2 reid reid 4096 Apr 9 2005 backup_removed -rw-r--r-- 1 reid reid 128 Nov 30 14:40 jpilot.alarms -rw-r--r-- 1 reid reid 63 Nov 30 14:41 jpilot.log -rw------- 1 reid reid 6 Nov 30 14:40 jpilot.pid -rw-r--r-- 1 reid reid 131 May 13 2004 jpilot.plugins -rw-r--r-- 1 reid reid 1620 Dec 5 20:15 jpilot.rc -rw-r--r-- 1 reid reid 0 Dec 5 20:15 jpilot_to_install -rw-r--r-- 1 reid reid 13938 Dec 5 20:15 next_id And immediately after (somewhat over 1 minute later): 72 [~/palm/jpilot]$ ls -l total 88 -rw-r--r-- 1 reid reid 0 Jan 27 2004 AddressDB.pc3 -rw-r--r-- 1 reid reid 718 Nov 30 14:41 AddressDB.pdb -rw-r--r-- 1 reid reid 0 Dec 5 22:16 DatebookDB.pc3 -rw-r--r-- 1 reid reid 9359 Nov 30 14:42 DatebookDB.pdb -rw-r--r-- 1 reid reid 0 Jan 27 2004 ExpenseDB.pc3 -rw-r--r-- 1 reid reid 473 Nov 30 14:41 ExpenseDB.pdb -rw-r--r-- 1 reid reid 0 Jan 27 2004 Keys-Gtkr.pc3 -rw-r--r-- 1 reid reid 0 Jan 27 2004 Memo32DB.pc3 -rw-r--r-- 1 reid reid 363 Nov 30 14:41 Memo32DB.pdb -rw-r--r-- 1 reid reid 0 Dec 4 22:41 MemoDB.pc3 -rw-r--r-- 1 reid reid 5308 Nov 30 14:42 MemoDB.pdb -rw-r--r-- 1 reid reid 2102 Dec 1 16:32 Saved Preferences.prc -rw-r--r-- 1 reid reid 0 Dec 2 21:10 ToDoDB.pc3 -rw-r--r-- 1 reid reid 2402 Nov 30 14:42 ToDoDB.pdb lrwxrwxrwx 1 reid reid 14 Nov 30 14:43 backup -> backup11301443 drwx------ 2 reid reid 4096 Nov 30 14:42 backup10311158 drwx------ 2 reid reid 4096 Nov 30 14:43 backup11301443 drwx------ 2 reid reid 4096 Apr 9 2005 backup_removed -rw-r--r-- 1 reid reid 128 Nov 30 14:40 jpilot.alarms -rw-r--r-- 1 reid reid 63 Nov 30 14:41 jpilot.log -rw------- 1 reid reid 6 Nov 30 14:40 jpilot.pid -rw-r--r-- 1 reid reid 131 May 13 2004 jpilot.plugins -rw-r--r-- 1 reid reid 1620 Dec 5 22:16 jpilot.rc -rw-r--r-- 1 reid reid 0 Dec 5 22:16 jpilot_to_install -rw-r--r-- 1 reid reid 13938 Dec 5 22:16 next_id Note in particular DatebookDB.pdb. The size of the file has changed, so the file must have changed -- but the last modified date remains "Nov 30 14:42" (it seems to me that it should be "Dec 5 22:16" like DatebookDB.pc3). Thanks again. Please let me know if you need me to do any more experiments. Reid -- http://reidster.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]