SSH dump to Tape host
SSH dump to Tape host
#!/bin/sh
#
# Rename to ssh-dump.sh and set executable
#
# VARIABLES
HOST=192.168.1.254 #host with tape drive
DIR=/home/john #dir to backup
# USER=john
#
# END VARIABLES
#
# cmd line example:
# RSH=/usr/bin/ssh dump 0an -b256 -f 192.168.1.254:/dev/st0 /home/john/
#
RSH=/usr/bin/ssh dump 0an -b256 -f $HOST:/dev/st0 $DIR
#
# If you want to connect a diff user
#RSH=/usr/bin/ssh dump 0an -b256 -f $user@$HOST:/dev/st0 $DIR
Filed under: Scripts - @ February 3, 2013 9:42 pm