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


unixsamurai.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Read our Privacy Policy for more info.

Leave a Reply

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