delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/18/11:58:44

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 18 Oct 2012 17:57:23 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Using tar to run backups onto a tape device using cygwin
Message-ID: <20121018155723.GR25877@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1350571521697-93659 DOT post AT n5 DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <1350571521697-93659.post@n5.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Oct 18 07:45, srikant veeraraghavan wrote:
> Hi,
> 
> I have been trying to write few backups using the tar command onto a tape
> drive which is zoned to my Windows server.
> The Carts have been loaded on the tapes on which I need to run the backup.
> I found the tape Symbolic name from the Device manager tab. And this is the
> command that I used.
> 
> tar -cf \\.\Tape0 /cygdrive/c/StratfordData

No, no, no.  When in Rome, ...

Here's the important link to the User's Guide:
http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices

Cygwin is a POSIX layer, as such it provides a POSIX view to the
supported devices.  If you use native Windows device names, the
special POSIXy handling of the device won't kick in and you are on
your own.  If you want the entire thing, use the POSIX device name.

Having said that, what you want is either /dev/st0 or /dev/nst0.
Note that st0 and nst0 have a different meaning!


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019