This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to backup KDEPIM data?

Tags: None
(comma "," separated)
decard31
Registered Member
Posts
2
Karma
0

How to backup KDEPIM data?

Fri Oct 15, 2010 8:14 pm
In the old days, when I'd go to backup files with Unison or rsync, it was trivial. But I'm noticing problems in KMail, for example, between the mailbox and maildir content and the indexes, I suspect akonadi. With KDE becoming ever reliant on akonadi, how does one properly backup/copy ones KDEPIM apps?
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: How to backup KDEPIM data?

Sat Oct 16, 2010 7:33 am
Unless you are using the development release (4.5) Akonadi is not touching your mail. You don't say what problems you are noticing, so it's difficult to guess what sort of help you need. Meanwhile, the direct answer to your question is found at http://userbase.kde.org/KMail/FAQs_Hint ... machine.29

To help you understand Akonadi, try http://userbase.kde.org/Akonadi_and_AddressBook


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
john_hudson
Registered Member
Posts
549
Karma
2
OS

Re: How to backup KDEPIM data?

Sun Oct 17, 2010 5:13 pm
I have never had a problem simply backing up /home which has,so far, reliably retained all my data.


John Hudson, proud to be a member of KDE forums since 2008-Oct.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: How to backup KDEPIM data?

Sun Oct 17, 2010 5:24 pm
Great link, annew! I googled it and it wasn't even on the first page :(


Debian testing
decard31
Registered Member
Posts
2
Karma
0

Re: How to backup KDEPIM data?

Mon Oct 18, 2010 12:30 pm
Thank you for the pointers, but when I back up my data at work, and take it home with me, KDE (4.4) is of course running at home to. So there are some conflicts, but if I force everything from the external drive to over-write the local home drive, I still end up with messages that have lost their meta-data/index info. That is, in the message listings, they have no date, or subject.
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: How to backup KDEPIM data?

Mon Oct 18, 2010 4:18 pm
The only real answer to this, I think, is an IMAP server, so that the data resides in a single place (including metadata) but is accessible from anywhere.

I have one computer at home that is set up to retrieve all my mail, from every account. When I'm away from home my laptops "phone home" and collect my messages, but I'm only reading what is on the server. It's still there when I get home.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
eshneto
Registered Member
Posts
2
Karma
0
OS

Re: How to backup KDEPIM data?

Wed Oct 27, 2010 9:50 pm
Still, one question remains. Why do I need to carry hundreds of megabytes only to keep my contacts in sync between two PCs?

Let us follow http://userbase.kde.org/KMail/FAQs_Hint ... machine.29 as suggested.

Things get really odd from here:

-> Everthing under ~/.local/share/

in my system:

Code: Select all
elias@laptop:~> du -h .local/share | tail -n 1
1,5G    .local/share


You must be kidding, right?

Now, let us take a look at ~/.local/share:

Code: Select all
elias@laptop:~> ls .local/share/
akonadi  applications  local-mail  marble  mime  tracker  Trash


I have assumed that only ~/.local/share/akonadi is necessary and that directory by itself takes 141M. Even so, how reasonable is the design that forces users to carry all this data in order to keep his contacts backed-up or in sync?

But that's not all. The FAQ moves on:
(...)
-> ~/.kde/share/config/nepomukserverrc
-> Everything under ~/.kde/share/apps/nepomuk/ (KAddressBook stores contact groups in Nepomuk.)

Is that reasonable?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: How to backup KDEPIM data?

Thu Oct 28, 2010 3:40 am
With regards to ~/.local/share, I suggest you actually check which directories are using that space... it's probably Marble's cache.

The 141mb of ~/.local/share/akonadi will also cover all calendars, emails, etc in the long term. Note that most of that ( 128mb here ) is InnoDB log files, which exist to protect your data in the event of corruption or crashes.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
eshneto
Registered Member
Posts
2
Karma
0
OS

Re: How to backup KDEPIM data?

Thu Oct 28, 2010 12:06 pm
With regards to ~/.local/share, I suggest you actually check which directories are using that space... it's probably Marble's cache.


No it is tracker's cache.

The 141mb of ~/.local/share/akonadi will also cover all calendars, emails, etc in the long term. Note that most of that ( 128mb here ) is InnoDB log files, which exist to protect your data in the event of corruption or crashes.


I have only 56 contacts! And e-mail is not indexed (as of kdepim4.4.7) by akonadi, right? So, how could contacts+calendar take up to 141M. Are you a developer? If so, I am sure you should find more effective ways of implementing this good idea.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: How to backup KDEPIM data?

Fri Oct 29, 2010 4:03 am
Correct, emails are not stored in Akonadi with 4.4. Contacts "take" 141mb because there is an overhead in initialisating the MySQL database, and keeping recovery logs, to handle the event of a crash.

Most of this cost comes from MySQL itself. SQLite isn't too suitable for Akonadi, especially when it starts to handle Emails, etc as the performance falls significantly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar