1833760 Members
2188 Online
110063 Solutions
New Discussion

how to backup a file?

 
SOLVED
Go to solution
faust2004
Regular Advisor

how to backup a file?

Hi, expert,

how to bakcup a file from a hp box to the tape of another dec box?

Thanks
Sunny
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: how to backup a file?

You can do something like this:

find . -print | cpio -ocBv | remsh remote_host dd ibs=5k obs=100k of=/dev/rmt/0m

You will need to use the appropriate tape device on the remote host and enable remsh's by setting .rhosts and hosts.equiv. If you like, you can substitute tar or fbackup for the cpio command.

man find, cpio, remsh, dd for details.
If it ain't broke, I can fix that.
Mark Fenton
Esteemed Contributor

Re: how to backup a file?

You might export the file system under NFS and mount it on the DEC box, dumping it to tape from thence...
Scott Van Kalken
Esteemed Contributor

Re: how to backup a file?

Clay,

that's possibly the dodgiest command I've ever seen.

I never would have thought of piping stuff into remsh.

I'm going to use that I think.


Thanks

Scott.
harry d brown jr
Honored Contributor

Re: how to backup a file?

sunny,

Can you tell us what DEC box you have and what OS it is?

The concern is that some DEC os's are BYTE-SWAPPED.

live free or die
harry
Live Free or Die
faust2004
Regular Advisor

Re: how to backup a file?

My dex box is trux 5.1 , hp is 11.0.
Using the method mentioned by Stephenson, it is ok!

Thanks
Sunny