[Evolution] Creating a backup script



I've made a backup script to be executed in my crontab, but it's a bit
dirty and I'd appreciate it if anyone could help me clean it up a bit.
I've added comments to indicate what I'd like to do with it (i.e. where
my scripting skills are inadequate):

#!/bin/bash
evolution-1.5 --force-shutdown # I'd like this to execute only if the
evolution-1.5 program is not running
export TIME=`clock` # This spits out a lot of time info; I'd like to
make this a bit terser
tar
-cfz /home/andrew/.evolution_files_$TIME.tar.gz /home/andrew/.evolution/* # This command doesn't even work (I 
pulled it from an archived email).  

On the last step, I get the error "tar: Options `-[0-7][lmh]' not
supported by *this* tar".  Google was no help.

I also wonder if there are any other cool tricks you all find useful in
your own backup situations?

Thanks,
Andrew






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]