This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pre-xfer exec works in XP but not in Vista


Matthias Meyer wrote:

> Matthias Meyer wrote:
> 
>> Hi,
>> 
>> I try to use exact the same procedures within XP and Vista.
>> Linux-Server with backuppc, Windows-Clients with cygwin and rsyncd V3.0.4
>> over OpenSSH V5.1p1 for backup.
>> This will work with XP but unfortunately not with Vista (Home Basic) :-(
>> 
>> In Vista I get the following error from rsyncd:
>> pre-xfer exec returned failure (65280)
>> rsync error: requested action not supported (code 4)
>> 
>> and Vista pops up a small windows with the message:
>> sh.exe would be finished and closed.
>> The application is not any longer running correctly due to a problem.
>> (sorry, thats my translation from german into english ;-)
>> 
>> But "sh /etc/Backup/pre-exec.sh" from an vista cmd box works correct.
>> 
>> Excerpt from my rsyncd.conf:
>> -----------------
>> max connections = 6
>> log file = /var/log/backup-service.log
>> read only = false
>> write only = false
>> transfer logging = no
>> list = false
>> max verbosity = 6
>> address = 127.0.0.1
>> pre-xfer exec = /etc/Backup/pre-exec.sh
>> post-xfer exec = /etc/Backup/post-exec.sh
>> [C]
>> path = /cygdrive/c/
>> -----------------
>> 
>> My pre-exec.sh:
>> -----------------
>> /bin/ManageSuspend.exe OFF
>> exit 0
>> -----------------
>> 
>> Thanks for any hint
>> Matthias
> 
> Nobody runs pre-xfer exec within Vista?
> 
Solved:
The owner of the rsyncd process (normally system) need execute permissions
on /etc/Backup/pre-exec.sh and /etc/Backup/post-exec.sh
Therefore:
 chgrp system /etc/Backup/pre-exec.sh
 chmod g+x /etc/Backup/pre-exec.sh
is necessary for both scripts.

br
Matthias
-- 
Don't panic


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]