Return to BSD News archive
Path: euryale.cc.adfa.oz.au!olive.mil.adfa.oz.au!navmat.navy.gov.au!posgate.acis.com.au!warrane.connect.com.au!news.syd.connect.com.au!news.mel.connect.com.au!munnari.OZ.AU!metro!metro!inferno.mpx.com.au!news.mel.aone.net.au!imci4!newsfeed.internetmci.com!howland.reston.ans.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.sys.hp.hpux,comp.os.linux.networking,comp.unix.bsd.freebsd.misc Subject: Re: Backing up to HP/UX from Linux and FreeBSD Followup-To: comp.sys.hp.hpux,comp.os.linux.networking,comp.unix.bsd.freebsd.misc Date: 20 Feb 1996 14:26:22 GMT Organization: Columbia University Center for Telecommunications Research Lines: 67 Message-ID: <4gclmf$on2@sol.ctr.columbia.edu> References: <4gbk1p$a2r@mayumi.iphil.net> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Xref: euryale.cc.adfa.oz.au comp.sys.hp.hpux:33516 comp.os.linux.networking:29228 comp.unix.bsd.freebsd.misc:14105 Daring to challenge the will of the almighty Leviam00se, Miguel A.L. Paraz (map@iphil.net) had the courage to say: : Hello! : I've got a HP 9000 box with a DDS drive. I want to use this to back up : my Linux and FreeBSD systems across the LAN. Mounting the other systems : through NFS would seem to cause problems with the uid/gid's when doing a tar : (is this right?) : Is there some kind of client I can run on the other machines so they : can back up onto the HP machine? You can use rdump/rrrestore. That what it's meant for. From the FreeBSD machine, for example, you can do this: # rdump 0bdf 126 54000 hptapehost:/dev/rmt/0m /dev/wd0a Assuming that the hostname of the FreeBSD machine exists in /.rhosts on the HP machine, this will dump directly to the remote drive. The one caveat here is that dump only dumps whole filesystems; also, this requires at least read access to /dev/wd0a and (actually /dev/rwd0a), so it has to be done either by root or by a user in the operator group. Note that many versions of tar also understand the same syntax (the GNU tar that comes with FreeBSD and Linux certainly does). So you can also do this: (from the FreeBSD/Linux host) % tar -cvf hptapehost:/dev/rmt/0m some/directory/to/backup To extract: % tar -xvf hptapehost:/dev/rmt/0m The GNU cpio _may_ also support the same remote tape protocol (I don't remember for sure) so you could use that too if you want. If you don't want to use dump and you find yourself without a version of tar that supports the remote tape protocol, there is another way do backups using tar direct from the FreeBSD box. This requires a utility called ttcp, which is freely available on the net (I think you can find it on SGI's ftp site (ftp.sgi.com:/sgi/src/ttcp).) ttcp lets you establish pipes between networked machines. So, to tar direct from your FreeBSD (or Linux) host to the HP, you could do this: (on the HP -- do this first to establish the listening side) % ttcp -r | dd of=/dev/rmt/0m bs=126b (on the FreeBSD/Linux side) % tar -cvbf 126 - some/directory/to/backup | ttcp -t hptapehost You can also use ttcp with dump in the same fashion. (ttcp is a generally useful tool to have; like C-Kermit, no system should be without it.) Hope this helps. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= License error: The license for this .sig file has expired. You must obtain a new license key before any more witty phrases will appear in this space. =============================================================================