delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3CCAAC81.926192B0@iee.org> |
Date: | Sat, 27 Apr 2002 14:49:53 +0100 |
From: | Don Sharp <dwsharp AT iee DOT org> |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | gnuwin32 <cygwin AT cygwin DOT com> |
Subject: | Re: Cygrunsrv and backups |
References: | <229D7C0FE0BED311A0E800805F0DD471010D2DC0 AT wn01ex DOT wn DOT gb DOT solvay DOT com> |
"Craveiro, Marco" wrote: > > oh mate, thanks for that, could have saved me hours of digging - > unfortunately i receive the cygwin digest at the end of the day :-( need to > change that. > > anyway, there's just one thing i dont understand on your script: > > mt -f /dev/nst0 tell > > why do you need this? > One doesn't strictly need it. I use it to tell me how near to a full tape I am using so I reshuffle what goes on which tape when it proves necessary. A further point of note is that one should no longer do mounts of tape devices. For a while now they have been automatically available as /dev/[n]st[01..] if present on the system. Look it up in the archives around early to mid-November last year. Cheers Don Sharp > cheers! > > -----Original Message----- > > From: Don Sharp [SMTP:dwsharp AT iee DOT org] > > Sent: 26 April 2002 06:09 > > To: gnuwin32 > > Subject: Re: Cygrunsrv and backups > > > > If you have experience of backing up using tar on Unix then you can do > > the same with cygwin. Tape positioning with "mt" on the no-rewind > > editions of the tape device (e.g. /dev/nst0). > > > > My backup script looks like > > > > #!/usr/bin/sh > > mt -f /dev/nst0 status > > echo "Archive T: starting at `date`" > > cd /dost > > tar cf /dev/nst0 * > > mt -f /dev/nst0 tell > > sleep 30 > > echo "Archive D: starting at `date`" > > cd /cygdrive/d > > tar cf /dev/nst0 * > > mt -f /dev/nst0 tell > > sleep 30 > > echo "Archive finished at `date`" > > mt -f /dev/nst0 rewoffl > > > > The sleeps may not be necessary but I have had problems in the pass with > > streaming tapes when I haven't include them. > > > > Hope that helps > > > > Don Sharp > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |