what's the difference between rsync as a service and rsync as a program

3 posts / 0 new
Last post
steeman
Offline
Last seen: 11 years 6 months ago
Joined: 01.05.2008 - 21:33
what's the difference between rsync as a service and rsync as a program

I discovered a strange difference between 2 ways of using cwrsyncserverI want to backup a directory with
- readable directories
- readable files
- unreadable directory (because of acl)
- unreadable file (because of acl)

In both implementation I use the following command on the client-side (on Linux)

rsync -a rsync://rsnapshot@10.6.0.19:/test .

version 1:
using a service on windows2003 for rsyncserver (normal installation) I get the following output on the client-side
>rsync: send_files failed to open "/hidden.txt" (in test): Permission >denied (13)
--> only the hidden file is displayed

version 2:
type the following command in a cmd-box (first stop the service):
bin\rsync.exe --config rsyncd.conf --daemon --no-detach
Then I get the following output on the client-side:

>rsync: opendir "/hidden" (in test) failed: Permission denied (13)
>rsync: send_files failed to open "/hidden.txt" (in test): Permission >denied (13)
--> here you can see the file and the directory

Conclusion:
in the version where rsync is running as a service, I can't see that the unreadable directory isn't copied!
With rsync started as a program in a cmd-box, I CAN see that the unreadable directory isn't copied!

Is there a sollution for this problem (I want to see which directories aren't copied and use a service)?

Thank you

Philip

itefix
Offline
Last seen: 2 hours 23 min ago
Joined: 01.05.2008 - 21:33
Re: what's the difference between rsync as a service and rsync a

I've found it myself.As a service (standard installation) it runs with the environment variable CYGWIN="binmode tty nontsec"

As a program it runs with the environment variable CYGWIN="ttymode tty ntsec"

The diffence is ntsec / nontsec

So I will post a new question (how can I make cwrsyncserver run with ntsec?)

Philip

itefix
Offline
Last seen: 2 hours 23 min ago
Joined: 01.05.2008 - 21:33
Re: what's the difference between rsync as a service and rsync a

To avoid unexpected results, it is recommended to run cwrsync with CYGWIN=nontsec at both sides. cwRsyncServer is already configured for that. At client side, you can use the supplied batch file for rsync operations.

Release news