: # backup system to tape # Heiner Steven (heiner.steven@odn.de) : ${TAPE:=/dev/rst0} [ $# -ne 1 ] && set -- panic [ -c "$TAPE" -o -b "$TAPE" ] || exec echo >&2 "$0: cannot access backup device TAPE=$TAPE" echo "Really write host $1 to local device $TAPE (^d = no)? \c" read dummy || { echo; exit 0; } if ping "$1" >/dev/null 2>&1 && [ X`rsh -l root "$1" pwd` = X/ ] then set -x nice rsh -l root "$1" 'nice find .[!.]* . -xdev -print | cpio -ov -H odc' | dd of=$TAPE obs=10k set +x else echo >&2 "cannot reach host $1 (.rhosts entry for root?)" exit 1 fi