[wellylug] simple (bash) scripting question

Mark Signal mark at databackup.co.nz
Sat Jul 31 17:04:40 NZST 2004


Hi

I rsync data for a few customers and have a number of backup scripts for
each client. I want to have one common "settings" file for rsync that the
backup scripts would read in as a variable. something like...

common text file - containing one line of parameters like
"-vabcz --exclude=blahblah --suffix=blahblah"

and the backup scripts set read the file something like..

VARIABLE=`/path/cat common text file'

rsync $VARIABLE source destination etc etc

any ideas on how I could do this?

thanks

Mark
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004




More information about the wellylug mailing list