"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:[EMAIL PROTECTED]] > > 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/