[Kde-pim] How to recover PIM information?
Kevin Krammer
krammer at kde.org
Thu Nov 8 05:35:03 GMT 2012
On Wednesday, 2012-11-07, D. R. Evans wrote:
> Kevin Krammer said the following at 11/07/2012 11:16 AM :
> > On Wednesday, 2012-11-07, Dan Vrátil wrote:
> >> On Wednesday 07 of November 2012 09:21:08 D. R. Evans wrote:
> >>> So my question is: how do I find and then import the PIM information
> >>> from the backup disk so that I can use it on the 12.10 system?
> >>
> >> vCard with your contacts is in ~/home-backup/.kde/share/apps/kabc/*.vcf
>
> There are several empty files in that directory, but nothing useful.
>
> I know that none of my contact files were originally in such a location, so
> it's not obvious to me why kontact would make a copy and put it in that
> directory rather than working with the original file. But then, almost
> everything about PIM in KDE4 isn't obvious to me :-(
Kontact wouldn't store a copy there.
However, older versions had that as the default locations, so it could have
been the correct location for you depending on for how many years you have
been using Kontact.
> >> iCal with your events is in
> >> ~/home-backup/.kde/share/apps/korganizer/*.ics
>
> Same comment, except that I know that some -- and possibly all -- the
> calendars were remote... surely kontact wouldn't try to make a copy and
> store it in the local hierarchy, would it? In any case, there are no
> useful files at that location.
Right, in your case, remote calendars, there wouldn't be anything in there.
> > Contacts could also be in ~/home-backup/.local/share/contacts if the
> > "Personal Contacts" backend was being used.
>
> That directory is empty.
Ok. This would have been the default location for newer versions. Seems you
have been using neither, possibly a manually configured address book?
> > Configuration for backends (Akonadi resources) is stored in KDE's config
> > directory, in files named like the resource they belonged to.
> >
> > Look for files matching this pattern
> >
> > akonadi_*_resource_*rc
> >
> > in
> >
> > ~/home-backup/.kde/share/config
>
> Ah!!!
>
> OK, it looks like the calendar pointers are in human-readable files with
> names of the form:
> akonadi_kcal_resource_<n>rc.
>
> So I shall be able to reconstitute the calendar mappings from those files.
Ah, excellent!
> As to the contact address books, though, I don't see anything obvious that
> performs the same function. Grepping the directory
> ~/home-backup/.kde/share/config for files containing strings that were in
> the names of address books produces no hits.
>
> So half the problem (the calendar half) is solved, thank you. Do you have
> any more suggestions as to where the address book mappings for contacts
> might be stored?
It should also be in such config files, however the name of the address book
might not have been stored that way which is why grepping for it wouldnt
necessarily find it.
Do you have a list of those akonadi_*_resource_*rc files?
Another thing you could try is to restore the full setup.
Fot this you would need to stop the Akonadi data exchance service with
akonadictl stop
Then overwrite its current files with the one from the backup, i.e.
files from ~/home-backup/.local/share/akonadi to .local/share/akonadi
from ~/home-backup/.config/akonadi to .config/akonadi
the akonadi_* config files to .kde/share/config
and then restart the service
akonadictl start
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20121108/40d443ec/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list