Akonadi und das Adressbuch

From KDE UserBase Wiki
Revision as of 22:03, 9 June 2010 by Sordon (talk | contribs) (Created page with '==Organisation von Backups==')

Template:I18n/Language Navigation Bar


Diese Informationen wurden von Tobias Koenig, KDE-PIM-Entwickler, zur Verfügung gestellt.

Einige Definitionen

Unter 'echten Daten' verstehen wir Daten wie Kontakte oder Ereignisse. Diese Daten werden entweder auf einem Groupware-Server oder in lokalen Dateien gespeichert. Wo genau, hängt von der Ressource ab, die Sie verwenden. Z.B. die "Persönliche Kontakte" Ressource speichert ihre Daten unter $HOME/.local/share/contacts, während die "VCard Datei" Ressource (welcher zur Verwendung nicht empfohlen wird) ihre Daten in $HOME/.kde/share/apps/kabc/std.vcf speichert.

Die "zwischengespeicherten Daten" sind Kopien der "echten Daten", die in der Datenbank für einen schnelleren Zugriff und Offline-Caching gehalten werden. Die Datenbank enthält auch die "Meta-Daten", die Management-Daten die Akonadi benötigt, um korrekt zu arbeiten.

Die "Konfigurationsdaten" sind die Daten für die Konfiguration des Akonadi-Server und für die einzelnen Ressourcen. Die Konfigurationsdaten für den Server sind unter $HOME/.config/akonadi abgelegt, die Konfigurationen für die Ressourcen sind meistens unter $HOME/.kde/share/config/akonadi_xyz_resourcerc# gespeichert (xyz ist der Name der Ressource und # ihre Instanz-Nummer).

Organisation von Backups

So now we need to decide what to back up. If you want to backup the 'real data', then it depends on the resources you have configured... if you use a groupware server, then the backup should be done there. For contacts, the files under $HOME/.local/share/contacts will normally be what you need.

The Akonadi tray icon offers you a backup and restore function. That backs up the 'cache data' which might not include all of your data! It can be helpfull if you want to clone a system 1:1, then you can copy the cached data together with the real data and the configuration, so you don't have to load the data again from the sources (e.g. groupware server).

Examining your Resources

KRunner offers you Akonadi Resource Configuration, or you can access this through the Akonadi tray icon > Configure. You may find several resources set up. You may find one labelled

Address Book - No KDE address book plugin configured yet.

That's the old compatibility bridge (possibly created by the migrator tool). You should remove this one!

std.vcf - Ready

This is the 'VCard File Resource' which points to $HOME/.kde/share/apps/kabc/std.vcf per default. It is not recommended that you use that one, as it doesn't share the benefit of Akonadi.

Personal Contacts - Offline

That's the preferred resource for your local contacts which points to

 $HOME/.local/share/contacts

Note that this may say 'Offline' when in fact you are using it. This is a display bug, and can safely be ignored.

And when more components use Akonadi?

When the rest of the components move to Akonadi, will all the data be under ~/.local/share? That should make backup easy. Well, contacts and mails are stored there now, I don't know what the plan for events/todos is, but it would make sense to store them there as well. We'll keep it in mind when discussion pops up!