Home » Scripts » SSH dump to Tape host

SSH dump to Tape host

terminalSSH 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


As an Amazon Associate I earn from qualifying purchases. Read our Privacy Policy for more info.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.