How to Backup Evolution December 3, 2005Posted by Carthik in guides, ubuntu.
From an old mailing list gem, I got the right method to back up your Evolution (mail + calendar + contacts) data the right way:
Shutdown evolution and gconftool-2:
$gconftool-2 --shutdown $evolution --force-shutdown
Create an archive with the data and configuration files:
Note: To completely save the Evolution data and configuration, you need to save the following directories/files:
The following command will take care of these
$tar -cvzf evolution-backup.tar.gz .evolution .gconf/apps/evolution .gnome2_private/Evolution
Now the file evolution-backup.tar.gz is the backup you want. You can move the data over to another Ubuntu computer if you like, and just un-tar the archive while in your /home/username/ directory to restore it.
To restore, use:
$gconftool-2 --shutdown $evolution --force-shutdown $tar xzf evolution-backup.tar.gz $gconftool-2 --unload evolution_setting.xml $gconftool-2 --load evolution_setting.xml
I really don’t see the need for a script, the scripts pretty much do the same thing as the commands above. If you run the commands one by one you will know if something fails immediately. However, I understand someone might want a script to make things easier. A script for backing up is kind of funny since if it fails, you will have no backups, so tread carefully🙂