From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,6e3c9e3380f3087e X-Google-Attributes: gidfee84,public From: frey@otter.bme.unc.edu (Eric Frey) Subject: Re: remote tar-device?? - roepcke Date: 1996/04/29 Message-ID: <4m28u2$rn2@newz.oit.unc.edu>#1/1 X-Deja-AN: 152028959 references: <317FA833.1406@fwg.ki.eunet.de> organization: The University of North Carolina at Chapel Hill newsgroups: comp.unix.osf.osf1 H. S. R�pcke (fwg@fwg.ki.eunet.de) wrote: : Hello, : Is it possible to mount an tape-device remote, : which is attached to another maschine? I want : to make backups with the networker-tool from : Digital coming with DU 3.2C (BRXNSS...350 Subset). 1. You can use rmt, but as I recall this requires that the system with the tape drive must have a .rhosts entry for it in the system that is going to use the tape drive. 2. You can use something like tar -cvf - . | rsh tapesys dd of=/dev/nrmt0h obs=32b where tapesys is the hostname for the system with the tape drive and /dev/nrmt0h is the device file for the tape drive. The argument to obs sets the tape block size. This command would be executed on the system you are backing up, so you need a .rhosts entry on tapesys for the system being backed up. 3. rsh backsys -n tar -C /backdir -cvf - . | dd of=/dev/nrmt0h obs=32b This is the same as above except that it is executed on the system with the tape drive and you must have a .rhosts entry on backsys for tapesys. BTW, the -C command works with gnutar, I'm not sure if it works with the standard osf tar. 4. If you are reading and writing with a program, you can use mknod to create a named pipe, then use rsh to write this to a tape drive. Then, open and write a file to it using the named pipe and it will be written to the tape drive. Something like this (syntax may be slightly wrong) mknot p tapepipe rsh tapesys dd of=/dev/nrmt0h obs=32b < tapepipe Then, just open and write to a file named tapepipe in you program. You will need to do the rsh once for each time you open/close the file as the pipe closes on a close. Hope this helps. ======================================================================= Eric C. Frey Phone: 919-966-6729; Fax: 919-966-2963; Research Assistant Professor e-mail: frey@bme.unc.edu Department of Biomedical Engineering and Department of Radiology The University of North Carolina 152 MacNider Hall, CB 7575, Chapel Hill, NC 27599