delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Matthias Meyer <Matthias DOT Meyer AT gmx DOT li> |
Subject: | Re: pre-xfer exec works in XP but not in Vista |
Date: | Fri, 26 Dec 2008 03:24:20 +0100 |
Lines: | 61 |
Message-ID: | <gj1f8m$q95$1@ger.gmane.org> |
References: | <ggs10b$d8$1 AT ger DOT gmane DOT org> <ghukoh$jng$1 AT ger DOT gmane DOT org> |
Reply-To: | Matthias DOT Meyer AT gmx DOT li |
Mime-Version: | 1.0 |
User-Agent: | KNode/0.10.9 |
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 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |