Complete Kontact Backup and Restoration

Ben Hayes ben.hayes at bjconsultancy.co.uk
Wed Jun 29 08:42:17 UTC 2005


James

On Wednesday 29 June 2005 00:25, James Gray wrote:
>
> ~/Mail - kmail folders etc.
> ~/.kde/share/apps/kaddressbook - address book data
> ~/.kde/share/apps/knode - knode (Usenet) data
> ~/.kde/share/apps/kwallet - KWallet, this is where passwords are stored
> etc. ~/.kde/share/apps/korganizer - Calendar etc.
> ~/.kde/share/config/ - contains the configs for all/most KDE components.
> Either backup this entire directory, or pick out the apps you want the
> configs for.
>
> So if you put each of those directories/files in a file, (one on each line
> without the "~/" because tar doesn't do the "~" expansion so will complain
> that a literal directory called "~" doesn't exist). Call the file
> "kontact.backup" in your home directory, then you can do some "tar" magic
> like this:
>
> cd ~
> tar -cf - -T ./knotact.backup | gzip - > knotact_backup-$(date +%Y%M%d).tgz
>
> When done, you'll have date-stamped file like "kontact_backup-20050629.tgz"
> with all your data in it :)  This is begging for a cron job isn't it ;)
>
> To restore a backup, reverse the process:
>
> cd ~
> tar -zxf kontact_backup-YYYYMMDD.tgz

I've often wondered where all the data was and how to go about backing it up 
myself.  Thanks for the info here my friend!

Ben




More information about the kubuntu-users mailing list