Operating System - HP-UX
1833018 Members
2056 Online
110048 Solutions
New Discussion

tar backup on remote device

 
SOLVED
Go to solution
Sunil Kumar K.U.
Frequent Advisor

tar backup on remote device

hello all,

what is the way to take tar backup of some data on one HP9000 server using a dds drive on another HP9000 server? Thanks in advance for the help.

sunil
4 REPLIES 4
Alex Glennie
Honored Contributor
Solution

Re: tar backup on remote device


tar cvf - /dir_name | remsh hostname dd of=/dev/rmt/0m

or

tar cvf - . | remsh hostname dd of=/dev/rmt/0m

which will backup the current directory.
hostname is the hostname of the machine with the drive.
Alex Glennie
Honored Contributor

Re: tar backup on remote device

also

remsh "dd if=/dev/rmt/0m bs=10k" | tar xvf -
By default tar uses a blocksize of 10K. The reason is that the
logical record size is 512 and blocking factor is 20 (bydefault).

should work
Ravi_8
Honored Contributor

Re: tar backup on remote device

Hi,
# tar -cvf . -execl 'remsh hostname/ip dd of=/dev/rmt/xx' {}\;
never give up
Shahul
Esteemed Contributor

Re: tar backup on remote device


Hi

U can use thi step

#tar -cvf - / |remsh hostname dd of = ..bs=10K

One more thing U can do like NFS mounting. U can mount the directory which U want to be backed up in to the server which is having DDS drive. Then use a normal tar command.


Shahul