Home » Scripts » SSH dump to Tape host

SSH dump to Tape host

terminalSSH dump to Tape host





SSH dump to Tape host

# Rename to ssh-dump.sh and set executable
HOST= #host with tape drive
DIR=/home/john #dir to backup
# USER=john
# cmd line example:
# RSH=/usr/bin/ssh dump 0an -b256 -f /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

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