Akonadi og AddressBook

    From KDE UserBase Wiki
    Revision as of 13:36, 9 June 2010 by Claus chr (talk | contribs) (Created page with 'Nu skal vi beslutte, hvad vi vil have med i backup'en. Hvis du ønsker backup af de 'egentlige data', så afhænger det af, hvilken ressource du har konfigureret... hvis du bruge...')

    Template:I18n/Language Navigation Bar


    Denne information stillet til rådighed af Tobias Koenig, KDE-PIM developer.

    Nogle definitioner

    Ved 'egentlige data' forstår vi de egentlige data som kontakter eller begivenheder. Disse data gemmes direkte enten på en groupware-server eller i en lokal fil; præcis hvor afhænger af, hvilken ressource, du bruger. Ressourcen 'Personal Contacts' gemmer fx sine data i $HOME/.local/share/contacts, mens ressourcen 'VCard File' (som det ikke anbefales at bruge ;)) gemmer sine data i $HOME/.kde/share/apps/kabc/std.vcf.

    De 'cachede data' er kopier af de 'egentlige data', som gemmes i databasen for hurtigere tilgang og offline opbevaring. Databasen indeholder også 'metadata', som er administrative data, som Akonadi behøver for at virke korrekt.

    Ved 'konfigurationsdata' forstås de data, som konfigurerer Akonadi-serveren og de enkelte ressourcer. Serverens konfigurationsdata kan findes under $HOME/.config/akonadi, mens ressourcernes konfigurationsdata for det meste gemmes i $HOME/.kde/share/config/akonadi_xyz_resourcerc# (hvor xyz er ressourcens navn og # er et løbenummer).

    Organisering af backups

    Nu skal vi beslutte, hvad vi vil have med i backup'en. Hvis du ønsker backup af de 'egentlige data', så afhænger det af, hvilken ressource du har konfigureret... hvis du bruger en groupware-server, så skulle backup'en blive ordnet der. For kontakter vil du normalt gemme filer i $HOME/.local/share/contacts.

    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!