lastcmd=""
fi
- #if this client has a special tar
- #we need to find a better solution to this conf-issue
- if [ -f $confdir/tar.$computer ] ; then
- tar=`cat $confdir/tar.$computer`
- else
- tar=tar
- fi
-
# expand the exclude-path for use with tar
exf=`ssh root@$computer "ls ~/.backup/exclude"`
# Pipe the stuff over ssh to ourselves, run pee to cat the contents to a
# file and build a file list, respectivly.
TARFILE=$DATE.tmp
- TARCMD="ssh root@$computer \"$tar --one-file-system -zcf - -C $filesystem . $lastcmd \
+ TARCMD="ssh root@$computer \"tar --one-file-system -zcf - -C $filesystem . $lastcmd \
--exclude-from=$exf\" | pee \"cat > $TARFILE\" \"tar tzvf -\""
echo `date`" $computer: Running $TARCMD" >&2
eval $TARCMD > $DATE.idx