1753767 Members
5309 Online
108799 Solutions
New Discussion юеВ

dd to remote tape drive

 
SOLVED
Go to solution
yc_2
Regular Advisor

dd to remote tape drive

Hi

How can I dd to a remote tape drive ?

Thanks in advance,
YC
4 REPLIES 4
Andy Monks
Honored Contributor
Solution

Re: dd to remote tape drive

dd if= bs=64k | remsh dd of=/dev/rmt/0m bs=64k

That should be it, as long as you can remsh ok.
Alex Glennie
Honored Contributor

Re: dd to remote tape drive

Notes for the following examples:

Everything under the /relative_path is backed up. If the relative path is /, you
will be doing a full backup.
/tmp/index is an index file of the backup; it can be omitted as can the
verbose -v option.
In order for remsh(1) to work without asking you for a password, either a
.rlogin in the user's home directory on the remote machine or
/etc/hosts.equiv must be properly set up.

Backing up to a tape drive on a remote machine:

Commands to run on the local machine, (the machine without the dds tape drive.

# cd /relative_path
# find . -depth -xdev | cpio -ovxcB 2>/tmp/index |
remsh machinewithDDSdrive -l user "cat - | dd
of=/dev/rmt/0m obs=5k"

To backup across the network on the system that owns the dds tape drive:

# remsh machinetobackup -l user "cd /relative_path ;
find . -depth -xdev | cpio -ovxcB 2>/tmp/index" |
cat - | dd of=/dev/rmt/0m bs=5k

Note: cpio via the network does not support multiple tapes.
yc_2
Regular Advisor

Re: dd to remote tape drive

Hi Andy and Alex,

thanks for your advise, really appreaciate your prompt reply.

Hi Andy,

If the "if" is from remote, can you correct me the following should work:

remsh dd if= bs=64k | dd of=/dev/rmt/0m bs=64k


YC
Stefan Farrelly
Honored Contributor

Re: dd to remote tape drive


Theres 2 ways to do this, 1 is a `push`, ie from the server you want to backup but to a tape driver on a remote server;
dd if= bs=64k | remsh dd of=/dev/rmt/0m bs=64k

OR a `pull`, where you are logged onto the server where the tape drive is located, but want to write to it data from a remote server;
remsh dd if= bs=64k | dd of=/dev/rmt/0m bs=64k
Im from Palmerston North, New Zealand, but somehow ended up in London...