Hello Everybody,
 
I was searching for an answer myself for quite some time without success, so
I hope somebody can clarify...I use rsync to sync webcontent from one server
to another.

Apache-details:

* Apache runs as nobody:nogroup. 
* Source-Server-Rights htdocs: The rsync-user gains access via o+rx
* Destination-Server-Rights htdocs: The rsync-user is in the group
'nogroup', gains access via owner rsync-user and g+rwx, htdocs-group is
'nogroup'

I use the following command:

/usr/bin/rsync -topglrcze ssh --delete --force --exclude='example.zip'
/vol/www/example/htdocs/ u...@destination-server:/vol/www/example/htdocs/
 
This works fine except in the following scenarios:
 
1. On the destination-server in e.g. /vol/www/example/htdocs/test there
already is an 'example.zip' --> I will receive the following error: "cannot
delete non-empty directory". I tried to overcome this with a rsync-filter,
but without success. How can I use the exclude-pattern even if such an
excluded file exists on the destination server ?
  
2. Whenever the Apache-Process of the destination server writes in its
webfolder (e.g. /vol/www/example/htdocs/test/example.htm with
nobody:nogroup) the rsync-user, even has full rights via 'nogroup', will
give me an "Operation not permitted" wth the next synchronisation.

In both cases the problem seems not to be about file or folder rights, it's
about having files on the destination-server, which weren't synced from the
source-server.

Any help greatly appreciated, thanks.

Carsten

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to