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

Was this helpful?
If you found my posts interesting, or I helped you figure something out, please consider tossing me a tiny gratuity for my time, research, to help offset the web hosting/development costs or to buy me a cup of coffee.

* This post may contain affiliate links. This means that I “might” receive a tiny amount of money, if you make a purchase using one of our links. It does not cost you anything extra, and helps us defray the costs of hosting and maintaining this site.

Leave a Reply