On Fri, 2013-01-18 at 14:26 +0000, John wrote: > The Defy Mini recently suffered a startup crash which wiped out > contacts (still dont know why, but i suspect the SD card). So i > synced, but of course this correctly deleted all contacts in > evolution. Doooh! > > So i reloaded the server from my tablet via Synthesis, as I couldn't > find the right syntax to restore the server from its backups, as in: > syncevolution --restore <session directory> --before|--after > [--dry-run] [--] <config> <source> ...
It would indeed be useful to have a Wiki page were a user is walked through the steps to use the recovery feature from the command line. There's only a page about the GUI: https://syncevolution.org/wiki/sync-gui-data-recovery > After many attempts :-( I have succeeded with a dry run :-) using: > john@Kitchen-Precise:~$ syncevolution > --restore .cache/syncevolution/defymini-2013-01-10-12-16 --before > --dry-run defymini addressbook > > This all looks good, (and the database includes the addressbook. > before which shows all the items before the wipe). > > Before committing this restore, could anyone please comment as to if i > am on the right track, or have missed out anything vital? > > [INFO] addressbook: started > [INFO] addressbook: restore done successfully > [INFO] Item changes to be applied locally during restore: > +---------------------------------------|-----------------------------+ > | | LOCAL > | > | Source | NEW | MOD | DEL | ERR | > TOTAL| > +---------------------------------------+-----+-----+-----+-----+-----+ > | addressbook | 0 | 0 | 756 | 0 | 755 > | > +---------------------------------------+-----+-----+-----+-----+-----+ It's a bit suspicious that it lists the items as "to be deleted". If you currently don't have local data, how can it delete something? Perhaps the logic is (incorrectly) inverted and it will instead add all the items in your backup? > [INFO] The same incremental changes will be applied to the server > during the next sync. > [INFO] Use -sync refresh-from-client to replace the complete data on > the server. > Why does the INFO line state Use -sync refresh-from-client etc.? Have > i missed a step? Does server refer to the defymini or evolution? The text comes from a time when SyncEvolution could only work as a SyncML client. Nowadays the message should be: [INFO] The same incremental changes will be applied to the peer during the next sync. [INFO] Use --sync refresh-from-local to replace the complete data on the peer. "peer" and "from-local" are independent of the role (client or server) that SyncEvolution plays in the config. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. _______________________________________________ SyncEvolution mailing list [email protected] http://lists.syncevolution.org/listinfo/syncevolution
