On Tue, 2004-04-20 at 08:49, Andrew Conkling wrote:
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?
Hi I'v attached the two scripts I use, whenever I want to create a backup I call bu-evo which in turn calls bu. Keep in mind that I use pop3 so you'll have to edit the command to create the exclude-list to list the dirs Ron suggested if you're using IMAP. HTH Bram -- # Mertens Bram "M8ram" <bram-mertens linux be> Linux User #349737 # # SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 256MB RAM # # 5:09pm up 29 days 20:46, 9 users, load average: 0.22, 0.18, 0.10 #
Attachment:
bu
Description: Text Data
Attachment:
bu-evo
Description: Text Data