delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/09/16:34:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.1 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RW,TW_WU,TW_WX,TW_XR,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4D77E92C.1030403@cygwin.com>
References: <AANLkTimaHtDpCDeiey5PMgXgfCLMs1EDM_0Pk_DbU3N0 AT mail DOT gmail DOT com> <4D77AA45 DOT 70103 AT cygwin DOT com> <B1644C15-CE70-4525-A18D-43598F1876FB AT gmail DOT com> <4D77E92C DOT 1030403 AT cygwin DOT com>
Date: Wed, 9 Mar 2011 23:34:44 +0200
Message-ID: <AANLkTi=n5LXgQc_OzzjKE=Z86zW7PLFkZ8uCJzYrO+Mr@mail.gmail.com>
Subject: Re: Rsync and FAT32
From: Panos Katergiathis <eyeprotocol AT gmail DOT com>
To: 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-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

Hello again.

Here follows a complete report of the problem.
I am using Windows 7 Ultimate with Service Pack 1.
I am using Cygwin's latest (to this date) edition.
I have only installed rsync / openssh / openssl packages besides the
base system.
Cygwin is installed on its default location (c:\cygwin).

In order to backup data from four different servers, i am using a text
file i created (getServers.sh) and a file containing excludes for
rsync (exclude.rs).
The contents of the getServers.sh file are seven lines, identical in
syntax to this one:


rsync -e 'ssh -p 22 -l root' -z --delete-excluded --verbose
--recursive --delete --update --exclude-from=exclude.rs root@<server
name>:xms/home /cygdrive/e/MyNetworkServers/XMS-home



The contents of the 'exclude.rs' file are irrelevant to the problem,
since it occurs even with this file left empty.

The size of the backup exceeds 35 GB, with many folders and files.
The backup itself is being written to a folder i created from within
Cygwin, on drive E.
The folder was completely empty when i first run my getServers.sh
file, so all the files in it were also created by cygwin alone.
So, everything went smoothly, during the first backup, but one day
later, running the getServers.sh results in something like this:

home/s2-111-maxkq/xmsUserFiles/xmsUserItems/n221.jpg
home/s2-111-maxkq/xmsUserFiles/xmsUserItems/n228.jpg
home/s2-111-maxkq/xmsUserFiles/xmsUserItems/n229.jpg
home/s2-111-maxkq/xmsUserFiles/xmsUserItems/s221.jpg
home/s2-111-maxkq/xmsUserFiles/xmsUserItems/s228.jpg
home/s2-111-maxkq/xmsUserFiles/xmsUserItems/s229.jpg
rsync: opendir "/cygdrive/e/MyNetworkServers/XMS-home/home/s3-064-nwukk/xmsAssets/Image/EIRINI/Master_Hairstylist_of_the_Year"
failed: Permission denied (13)
IO error encountered -- skipping file deletion
home/s4-042-zgpro/xmsAssets/Image/VETA_SA/KENTRIKH_SELIDA/bannerkentroEN.gif
home/s4-044-axguq/xmsAssets/Image/VETA_SA/DEUTSCH/bannerkentroDE.gif

So, this 'Master_Hairstylist_of_the_Year' directory, which (i repeat)
was created by cygwin itself during the first backup, is no longer
reachable?

Let's see the dir:
ls -al results in this:

d---------+ 1 zzz None     0 Mar  8 03:03 DOLORES
d---------+ 1 zzz None     0 Mar  8 03:03 DUBLIN_2011
d---------+ 1 zzz None     0 Mar  8 03:03 KATASTHMATA
d---------+ 1 zzz None     0 Mar  8 03:03 KEUNE_TREND_COLLECTION_-_MEN
d---------+ 1 zzz None     0 Mar  8 03:03 LOGO_KOMMWTHRIWN
d---rwx---+ 1 zzz None     0 Mar  8 19:53 Master_Hairstylist_of_the_Year
d---------+ 1 zzz None     0 Mar  8 03:03 NEA
d---------+ 1 zzz None     0 Mar  8 03:03 OMC_2011_FWTO
d---------+ 1 zzz None     0 Mar  8 03:03 OMC_SHOW_PARIS


If i check the directory's permissions via Windows, everything appears
almost normal: its owner is zzz, however zzz does not have full access
control over it, thus it can not be deleted even from within Windows.
As a matter of fact, the only way to delete it is by going to "Advance
Permissions" and fixing the zzz's permissions from there.

ls -al on the linux server from where the dir originates:

drwxrwxrwx  3 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25 DOLORES
drwxrwxrwx  2 s3-064-nwukk s3-064-nwukk 4.0K Mar  1 06:14 DUBLIN_2011
drwxrwxrwx 10 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25 KATASTHMATA
drwxrwxrwx  2 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25
KEUNE_TREND_COLLECTION_-_MEN
drwxrwxrwx  4 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25 LOGO_KOMMWTHRIWN
drwxrwxrwx  2 www-data     www-data     4.0K Mar  8 04:42
Master_Hairstylist_of_the_Year
drwxrwxrwx  3 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25 NEA
drwxrwxrwx  2 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25 OMC_2011_FWTO
drwxrwxrwx  3 s3-064-nwukk s3-064-nwukk 4.0K Feb 23 02:25 OMC_SHOW_PARIS

Finally the rsyncd.conf on the linux server is :

uid = zzz
gid = nogroup
read only = false
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
hosts allow = <list of IP Addresses>
strict modes = false
incoming chmod = Dugo=rwx,Fugo=rw,Fgo=r

[xms]
path = /
comment = xms


Any further help will be appreciated.

Kind Regards,
Panos

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