Backup your Evolution data
Since DebianWheezy Evolution has a backup and restore procedure incorporated. In the menu choose File > Save Evolution data or Restore Evolution data.
Manual Backup and Restore
First check the files and directories for this procedure. They changed over the years!
Backing up your precious data is important and difficult, especially in Evolution. Knowing the virtue of preparations helps a lot, though. Try the backup and restore procedures on an account with only data you can throw away. Yes, TRY it. It's not that useful having good backups from every single day if the restore procedure doesn't work. Do this even before you start putting all your appointments and email into Evolution. If you already used Evolution for a while, backup and restore to a different, empty account to test it.
Backup
Shut down all evolution, evolution-data-server and related instances with 'evolution --force-shutdown'. Inspect that everything is gone with ps ax | grep evo. Rinse and repeat.
- Create a backup directory
Copy or compress gconf data (~/.gconf/apps/evolution) to the backup directory
Copy or compress data directory (~/.evolution) to the backup directory
- Copy or compress (you might also want to encrypt) the password file to the backup directory if you want to keep your passwords. Skip it if your backup is not secure
- Inspect the new backup and check that everything's there and looking good
This is a sequence of commands that cover steps 2-5:
DIR=~/evolution_backup_`date +%Y-%m-%d` mkdir $DIR cp -a ~/.gconf/apps/evolution $DIR/gconf_apps-evolution cp -a ~/.evolution $DIR/dotevolution cp -a ~/.gnome2_private/Evolution $DIR/passwords tar cvj -C `dirname $DIR` -f $DIR.tar.bz `basename $DIR` rm -rf $DIR
Restore
It's a very good idea to clean traces of old evolution data from the account you're restoring to.
Shut down all evolution instances with evolution --force-shutdown. Inspect that everything is gone with ps ax | grep evo. Rinse and repeat.
Remove ~/.evolution
Remove ~/.gnome2_private/Evolution
Unset all related gconf values (/apps/evolution)
rm -rf ~/.evolution rm ~/.gnome2_private/Evolution gconftool --recursive-unset /apps/evolution
It's time to restore the old backup. Find your backup data and copy the data in place again (in my case 'tar xvj -C ~/ -f ~/evolution_backup_2006-06-18.tar.bz' will unpack the data).
DIR=~/evolution_backup_2006-06-18 cp -a $DIR/gconf_apps-evolution ~/.gconf/apps/evolution cp -a $DIR/dotevolution ~/.evolution cp -a $DIR/passwords ~/.gnome2_private/Evolution
We're basically done, but one last thing - cross your fingers before you start evolution again.
