Howto restore Server with akonadi data?
Thorsten Schnebeck
thorsten.schnebeck at gmx.net
Thu Mar 1 23:05:28 CET 2012
Hi,
I had the challenge to restore mail-data from local backup to a (IMAP)-server.
In the past this was easy:
Kontact->Import->KMail data
path to /backup/daily.0/home/user/.kde/share/apps/kmail
You got a local maildir folder view and simply copy into server folder. When
ready, there was a nice "Delete folder" command.
Now there is no maildir copy any longer as the local cache is part of the
akonadi database. So I did:
close kontact
disable nepomuk-stuff
akonadictrl stop
close network connection
mv /home/user/.local/akonadi/ mv /home/user/.local/akonadi.save
cp -xaf /backup/daily.0/home/user/.local/akonadi /home/user/.local/
akonadictrl start
start kontact
select the mails -> save as mbox-file
repeat for all folders
close kontact
akonadictrl stop
rm -r /home/user/.local/akonadi
mv /home/user/.local/akonadi.save /home/user/.local/akonadi
enable nemomuk-stuff
akonadictrl start
enable network connection
open kontact
set-up local mbox-folders from saved files
copy to server folder
remove mbox folder
sync (can be really slow - akonadictrl prints in 2 - 5Hz frequency stuff like:
12288 +FLAGS (\Deleted)
12289 +FLAGS (\Deleted)
12290 +FLAGS (\Deleted)
12291 +FLAGS (\Deleted)
...
30435 +FLAGS (\Deleted)
30436 +FLAGS (\Deleted)
to console, so we talk about hours!)
)
ready :-)
so, this was a little bit more complicate - is there a way to force a copy
from a akonadi database to the server? When trying to sync a backup db the
server seems to win and deletes the local mail copy.
Any ideas howto better reuse akonadi data?
Bye
Thorsten
--
Old system:
=========
kontact --version
Qt: 4.7.2
KDE: 4.7.2 (4.7.2)
Kontact: 4.4.10
New system:
==========
kontact --version
Qt: 4.8.0
KDE: 4.8.00 (4.8.0 < who stoles that bracket ?:-))
Kontact: 4.8.0
More information about the users
mailing list