Date: 27 Dec 1997 15:46:00 +0100 From: C.Renner@daneel.franken.de (Dr. Christian Renner) To: suse-linux@suse.de Subject: Re: DAT-Streamer im Ethernet Reply-to: suse-linux@suse.de
Dear Hans.Foertsch@kronach.baynet.de! Referring to your mail from 27.12.97, 14:35:
Hallo,
ich habe hier zwei Rechner ueber ein Ethernet vernetzt. An einem haengt ein DAT-Streamer, den ich gerne mit beiden Rechnern benutzen wuerde.
Wie fange ich das denn an? Brauche ich NFS dafuer?
ein rsh tut es auch schon.
z.b. tar cvf - / | rsh datserver dd of=/dev/rmt0
Danke. Wenn Du Zeit hast, koenntest Du bitte die einzelnen Switches und Parameter noch ein bisschen erklaeren? Damit tue ich mich immer am schwersten.
Ciao
Christian Renner -- Erlangen, FRG ++ Voice +9131-207473 ++ IRC:Marchal ++*pgp-key on request* <A HREF="http://www.franken.de/users/daneel/C.Renner/index.html"><A HREF="http://www.franken.de/users/daneel/C.Renner/index.html</A">http://www.franken.de/users/daneel/C.Renner/index.html [From the episode: The Game] Counselor Deanna Troi: I never met a chocolate I didn't like. -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.de schicken, mit dem Text: unsubscribe suse-linux
Noch ein Tip zu diesem Thema. Wenn man eine Vollsicherung machen will hat man immer die Probleme mit den Zugriffsrechten vorallem beim Wiederstellen vom Band. Karel Kubat, karel@icce.rug.nl hat dazu folgendes Vorgeschlagen (mit ein paar Anmerkungen von mir): 4.1. Backups on remote devices Sometimes it may be necessary to back up files across the internet; e.g., using a remote tape device. In this case, the device denoted above as $BACKUP_DEV is at a remote host, say $DEV_HOST. A method to accomplish such a setup is to start a background process, consisting of a remote shell on the remote host, which writes its standard input to the tape device. A pipe on the local machine is then connected to the remote shell: # make local pipe device "als normaler user !!!" prompt> mknod /tmp/tapedev p # start remote shell on $DEV_HOST to write stdin # to the backup device $BACKUP_DEV # auch als normaler user,der auf dem remote-rechner rechte zur # ausfuehung eines rsh-kommandos und auf das tape-dev (z.B.: # /dev/st0) schreiben darf " prompt> rsh $DEV_HOST "dd of=$BACKUP_DEV" < /tmp/tapedev & # now a backup can be started to write information to # nun als root !!!!! /tmp/tapedev.. prompt> afio -o -Z /tmp/tapedev # when the backup is complete the pipe can be deleted prompt> rm /tmp/tapedev The `dd' command on the remote host is the Unix `device-to-device' copy program. The `of=' specification defines the output file to be $BACKUP_DEV. When restoring, the specification `if=$BACKUP_DEV' would be required. The program dd allows many options; e.g., a large block size can be defined which significantly can speed up the device access. For a block size of 20 Kbytes, the remote command would be `dd of=$BACKUP_DEV obs=20k conv=sync'. The flag `conv=sync' instructs dd to pad the output to 20 Kbytes blocks if required. For some remote hosts it may be necessary that a non-root remote shell is executed (e.g., for Suns). In that case, the backup would typically be made as root but the remote shell, accessing the backup medium, would be run as a non-root user. This setup can be easily be achieved using a small modification of the above script. The local pipe /tmp/tapedev must then be created as the non-root user in question, and this user must start the remote shell. The remainder of the scheme remains unchanged. Guten Rutsch Klaus Engelhardt -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.de schicken, mit dem Text: unsubscribe suse-linux
participants (1)
-
Engelhardt@neuburger.com