public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Don Sharp <dwsharp@iee.org>
To: gnuwin32 <cygwin@cygwin.com>
Subject: Re: Cygrunsrv and backups
Date: Sat, 27 Apr 2002 07:38:00 -0000	[thread overview]
Message-ID: <3CCAAC81.926192B0@iee.org> (raw)
In-Reply-To: <229D7C0FE0BED311A0E800805F0DD471010D2DC0@wn01ex.wn.gb.solvay.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@iee.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/

  reply	other threads:[~2002-04-27 13:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26 11:01 Craveiro, Marco
2002-04-27  7:38 ` Don Sharp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-29  4:48 Craveiro, Marco
2002-04-29  6:14 ` Don Sharp
2002-04-29  2:46 Craveiro, Marco
2002-04-29  3:35 ` Don Sharp
2002-04-26 15:41 Heribert Dahms
2002-04-26  8:53 Craveiro, Marco
2002-04-26  4:27 Craveiro, Marco
2002-04-26  6:11 ` Charles Wilson
2002-04-26  7:02 ` Don Sharp
2002-04-26  2:32 Craveiro, Marco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CCAAC81.926192B0@iee.org \
    --to=dwsharp@iee.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).