3 bindir=/home/backup # Location of backup.sh
4 confdir=/home/backup/conf/ # Configuration files
6 logbasename=`$bindir/logfilename.sh`
8 # The computers we want to back up
9 unixcomputers=`cat $confdir/computers.unix \
13 # Take the backups in parallel, but wait with actually outputting the logs
14 # until we have them all and can output them nicely in sequence.
15 for computer in $unixcomputers; do
17 $bindir/backup.sh $computer \
18 >>$logbasename.$computer.stdout \
19 2>>$logbasename.$computer.stderr \
20 || touch $logbasename.failed
27 if [ -f "$logbasename.failed" ]; then
28 echo "One or more backup jobs failed."
30 echo "All backups successful."
35 echo "Individual logs from each backup follow:"
38 for computer in $unixcomputers; do
40 echo "=========================="
41 cat $logbasename.$computer.stdout