From owner-freebsd-questions Wed Sep 6 22: 1: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (law-f39.hotmail.com [209.185.131.102]) by hub.freebsd.org (Postfix) with ESMTP id D987537B424 for ; Wed, 6 Sep 2000 22:00:57 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Sep 2000 22:00:57 -0700 Received: from 216.161.144.17 by lw1fd.hotmail.msn.com with HTTP; Thu, 07 Sep 2000 05:00:57 GMT X-Originating-IP: [216.161.144.17] From: "Andre I" To: questions@freebsd.org Subject: mt (tape) problem Date: Thu, 07 Sep 2000 05:00:57 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 07 Sep 2000 05:00:57.0622 (UTC) FILETIME=[9BE13360:01C01888] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am trying to do daily backup using dump. Here is my plan: dump level 0 on monday, and dump level 5 every other days. Because I don't have a lot of tape, I have to use one tape for the whole week. Fortunately, it's big enough :) the problem I have is here... I made a script that log the result of mt status (so I know the file number on the tape): root# mt status Mode Density Blocksize bpi Compression Current: 0x27:Mammoth variable 77611 IDRC ---------available modes--------- 0: 0x27:Mammoth variable 77611 IDRC 1: 0x27:Mammoth variable 77611 IDRC 2: 0x27:Mammoth variable 77611 IDRC 3: 0x27:Mammoth variable 77611 IDRC --------------------------------- Current Driver State: at rest. --------------------------------- File Number: 3 Record Number: 0 ^^^^^^^^^^^^^^ I want this!!! -------------- the problem is, somebody might eject my tape in the morning and put it back. So for my level 5 dump script, I want the drive to forward the tape to the eof. I use "mt eom" for it. root# mt eom root# mt status Mode Density Blocksize bpi Compression Current: 0x27:Mammoth variable 77611 IDRC ---------available modes--------- 0: 0x27:Mammoth variable 77611 IDRC 1: 0x27:Mammoth variable 77611 IDRC 2: 0x27:Mammoth variable 77611 IDRC 3: 0x27:Mammoth variable 77611 IDRC --------------------------------- Current Driver State: at rest. no file number!!! how could I get the file number? it would be hard to restore from tape if I don't know what the file number is =( Any help would be greatly appreciate. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message