delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/06/11:21:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_VR
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Thu, 6 Jan 2011 17:20:50 +0100
Message-ID: <AANLkTinQX27C=9fBde2-w=27_=EAe0PF2jRk7Ui_nGPu@mail.gmail.com>
Subject: Cygwin, VSS snapshots and Rsync
From: Adrien Reboisson <adrien DOT reboisson AT gmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi,

I don=92t know if the problem is related to Cygwin or Windows, but I
thought It was worth asking=85

I have no problem to use Rsync under Cygwin (Windows 7) on normal
conditions, for example to copy one file on a remote Ubuntu server.

Things get complicated when I want to copy open files. To perform
this, I create a VSS snapshot including the file I want to copy (I
just need to upload a big *.vhd file), map the snapshot path to a DOS
drive using DefineDosDevice(), then run rsync on the drive. After the
copy, the drive is unmounted and the snapshot is destroyed. After
having searched in this mailing list it even seems that Cygwin now
natively supports NT native pathnames (\\?\...) so most of my glue is
useless.

So, the following command line :

rsync.exe -vrtzP --stats --human-readable -W
"//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy80/Data/StorageDisk.vhd"
adrien AT 192 DOT 168 DOT 0 DOT 21:"~/ADRIEN/STORAGE/1/StorageDisk.vhd"

...gives me the following output :

Number of files: 1
**Number of files transferred: 0**
Total file size: 629.15M bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 30
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 39
Total bytes received: 12

Although I use =93-W=94 to force the file transfer, 0 files is
transferred, while rsync exit code is 0 (success).

I have the intuition that there might be an issue with the fact that
the snapshot is read-only.  But I get neither warning nor error
message from rsync. But maybe that=92s something specific to Cygwin ?

Any hint appreciated!

Best regards,

Adrien

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