- TARCMD="ssh $computer \"$tar --one-file-system -cf - -C $filesystem . $lastcmd \
- --exclude-from=$exf | gzip\" | (dd of=$TARFILE 2> /dev/null) 2>&1"
- echo "cmdline: $TARCMD"
- eval $TARCMD
-
- # Ideally, we should check wether the tar command returned 0 or not, but it
- # seems a pipe in bash returns the value of the last command in the pipe.
- # Instead, we check wether the resulting file has zero size, in which case we
- # consider it an error.
- if [ -s $TARFILE ]; then
- echo `date`": command probably ran without errors."
- #perhaps it did work
+ TARCMD="ssh $computer \"$tar --one-file-system -zcf - -C $filesystem . $lastcmd \
+ --exclude-from=$exf\" > $TARFILE"
+ echo `date`" $computer: Running $TARCMD" >&2
+
+ if eval $TARCMD; then