Am Donnerstag, den 27.01.2011, 11:12 -0600 schrieb Leonard Evens:
> I have a couple of shell scripts which I run to backup my files.   Right
> now I do something rather complicated to backup evolution.
> 
> Can I just use the evolution command in these scripts to do the backup
> directly?  Where do I find out about this.  evolution doesn't have
> a man page and
> evolution -h
> didn't help much.

I use the following bash script to do incremental backups of
my evolution data, version 2.28, that is.
It uses the incremental backup feature of GNU tar. You have to modify it
for version 2.32, since data is now stored in different places, like
~/.local/share/evolution and ~/.config/evolution. See also:
https://bugzilla.gnome.org/show_bug.cgi?id=629972.

#### begin of mybackup-evolution-increm.sh #####
#! /bin/bash

media_path=$1

echo "Shutting down evolution"
/opt/evo/bin/evolution --force-shutdown

echo "Backing up gnome configuration for /apps/evolution"
gconftool-2 --dump /apps/evolution
> /home/tom/.evolution/backup-restore-gconf.xml

echo "Creating incremental backup"
i=0
while [ $i ] ; do
  archive=$media_path/evolution-$i.tar.gz

  if [ ! -f $archive ] ; then
    echo Creating $archive
    cd $HOME && tar chf - .evolution -g .tar-g-evolution | gzip >
$archive
    break;
  else
    let i=i+1
  fi
done

#### end of mybackup-evolution-increm.sh #####

-- 
thomas


_______________________________________________
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-list

Reply via email to