Jean-Michel Beuken wrote: > Matthias, > > thanks for the quick answer... > >> I run pre-xfer successfully under Win XP but has no luck with Vista. >> Did you use XP or Vista? >> > > XP SP3 > >> Maybee "#! /bin/sh" is necessary in the first line of your >> "/bin/pre-exec.sh". > > administrat...@tikal2 /etc > $ cat /bin/pre-exec.sh > #! /bin/sh > # Shell script for the pre-exec operaions > cmd /c "c:\cygwin\bin\pre-exec.cmd" > exit 0 > >> I've read that in one thread somewhere. >> Did your *-exec.sh have execution rights? Try "ls -alh /bin/*exec.sh" >> > > administrat...@tikal2 /bin > $ ls -alh *exec.sh > -rwxr-x--- 1 Administrateur None 87 Dec 10 19:17 post-exec.sh > -rwxr-x--- 1 Administrateur Users 96 Dec 11 19:25 pre-exec.sh > > > but it doesn't work ! > > Have you remark the error message : > >> Remote[1]: pre-xfer exec returned failure (32256) >> Remote[1]: rsync error: requested action not supported (code 4) at >> /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/clientserver.c(840) >> [receiver=3.0.4] >> Read EOF: Connection reset by peer >> Tried again: got 0 bytes >> Done: 1 files, 197 bytes >> restore failed: Unable to read 4 bytes > > I use the 3.0.4 version of rsync in cygwin... > > a problem of protocol version between BackupPC and rsyncd/cygwin ? > > the return code ? > > regards, > jmb > No, no problem with the protocol version. BackupPC use rsync::Perl which supports protocoll version 28. rsync 3.0.4 supports protocol version 30 in a maximum. I use the same configuration as you but in german.
Yes, I remark the error message. Unfortunately I do not know what the meaning of the error code 32256. requested action not supported simply means that pre-xfer didn't run successfully. Under this circumstances rsync do not start the backup process. The rights of my *exec-scripts: $ ls -alh *exec.sh -rwx------ 1 Matthias None ......... Slight different but probably not the problem. Sorry if I ask stupid questions but there is no problem obviously. It seems all alright :-( Did you have /bin/sh.exe You have installed rsyncd by cygrunsrv? So it runs as user SYSTEM? See the owner of the logfile. Backup work and only restore failed or both? I have a similiar problem in Vista with failure code (65280). I asked today for both failure codes in the rsync.general mailing list. br Matthias -- Don't panic ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
