delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/01/17:13:02

X-Spam-Check-By: sourceware.org
Date: Thu, 1 Dec 2005 17:12:44 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: how to detect if Windows or Linux is running?
Message-ID: <20051201221244.GA4009@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <dmns6k$ahl$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <dmns6k$ahl$1@sea.gmane.org>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Thu, Dec 01, 2005 at 05:07:15PM -0500, H. S. wrote:
>Hi,
>
>I have installed Cygwin on a Windows XP computer to get rsync and ssh 
>running so that I can backup my important data on a Linux computer on my 
>home LAN. The idea is to use rsync to make rolling backups of my Windows 
>data automatically, say, once or twice a day and to retain last N 
>backups (N most probably going to be 10~20).
>
>But the problem I had not foreseen is that I dual boot this Windows 
>machine between Windows XP and Debian. How should I gracefully let the 
>rsync server know if this computer is running Linux or XP?
>
>I know that if the computer is running Linux, the rsync server will 
>never find /cygdrive/... folders and will just quite with an error. But 
>this is not 'clean', it will result in mails to the rsync server root 
>about the error.
>
>Suggestions?

Why not just use mount to mount things similarly on the cygwin side
and the linux side?

cgf

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

- Raw text -


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