From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 04:34:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D7FA16A4CE for ; Sat, 7 Feb 2004 04:34:48 -0800 (PST) Received: from cyclone.netfactory.com.au (unknown [202.154.73.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 2A70743D1F for ; Sat, 7 Feb 2004 04:34:47 -0800 (PST) (envelope-from craig@hotmix.com.au) Received: (qmail 215 invoked from network); 4 Feb 2004 09:14:39 -0000 Received: from adsl-105-128.wiredcity.net.au (HELO mammoth.edward.hotmix.com.au) (203.161.105.128) by mail.hotmix.com.au with SMTP; 4 Feb 2004 09:14:39 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 4 Feb 2004 17:30:17 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: backup question Thread-Index: AcPrAYA4FJtSj2wBQoiTS6kVfs+9lQ== From: "Craig Beasland" To: Subject: backup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 12:34:48 -0000 Hi there, We have a large disk that now required 2 tapes to backup. We are trying to use the -M --new-volume-script to execute a script which sends an email to the person and waits for them to press the "c" key to continue. The next-tape scripts works when run from the console directly and the message is displayed to the user to insert the next tape, but tar still reports an error. Have I missed an important step? The tar seems to execute the script but then immediately try to write onto the next tape - before I get a chance to put the new tape in. Any ideas on how to fix this, or a better method of backing up to multi tapes? Here is my script: #!/bin/sh mt -f /dev/st0 rewind tar -c \ -v \ -f /dev/st0 \ --new-volume-script "/etc/scripts/next-tape" \ --multi-volume /backup mt -f /dev/st0 eject and here is the next-tape command #!/bin/sh cat /etc/scripts/newtape.txt | mail -s "new tape" craig@hotmix.com.au echo -n Press 'C' to continue while true do read -n 1 keypressed if [ "$keypressed" =3D 'c' ]; then break; fi if [ "$keypressed" =3D 'C' ]; then break; fi done cheers craig