X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?St=E9phane_Klein?= <stephane@harobed.org>
Subject: /cygdrive/f/ missing when my script is executed by cron
Date: Thu, 29 Mar 2012 10:14:24 +0200
Lines: 38
Message-ID: <jl15l1$8k6$1@dough.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi,

I try to configure rsync on MS Windows to execute a folder 
synchronization every day.

I use this tools :

* I've installed cygwin
* I've use cygwin setup.exe to install rsync, openssh, cron

Next, in cygwin terminal, I did :

* I've created a ssh key and I've set it up on remote server
* next, I've wrote a bash script which execute rsync. Note : my source 
data are in "f:" device, meaning it's in "/cygdrive/f/" path (from 
cygwin terminal)
* I've tested my bash script, it works very well, all files are copied 
to remote host
* I've used cron-config to configure cron service
* I've append my bash script in cron configuration with crontab -e
* My bash script is executed by cron, I see it with cronevents

But, I've have an issue : when my bash script is executed by cron, it 
hasn't access to /cygdrive/f/, this device isn't mounted !

Do you have already had this problem ?

I've very few cygwin experience, I don't know where to dig.

Thanks for your help.

Regards,
Stephane
-- 
Stéphane Klein <stephane@harobed.org>
blog: http://stephane-klein.info
Twitter: http://twitter.com/klein_stephane
pro: http://www.is-webdesign.com


--
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

