Hello Matthew,

> Installed VisualSVN and Installed cwRysnc to move files to web server
> (we needed the exclude some folders, due to SQL scripts in repo and such)
> So the Hook works to the point of the last command for the rsync.
>
> The rsync command works from cmd window on server.  VisualSVN is set up to
> run as the Domain Administrator account for the moment.
>
> here is the post-commit hook code:
>
> REM this line is not working
> "C:\PROGRA~1\cwRsync\rsync" --recursive --archive --compress --verbose
> --quiet --chmod=ugo=rwX --exclude "**.svn**" --exclude "**uploads**"
> --exclude "/images/" %SVN_BUILD% %DEPLOY_DEST% >> %LOG% 2>&1
>
> The error that is being thrown is:
> rsync: mkdir "/cygdrive/j/Websites/myURL/testFINIAL" failed: No such file or
> directory (2)
> rsync error: error in file IO (code 11) at main.c(656) [Receiver=3.1.0]
>
> AGAIN, the line works if you open cmd window and run it with the hardcoded
> items...So this makes me think it is a syntax issue with the script or
> something like that.

What is the exact command issued by your script that fails? How does
the command differ from the one you enter manually? "No such file or
directory" in rsync may indicate that VisualSVN Server service account
lacks access to %DEPLOY_DEST% or the %DEPLOY_DEST% value is not
properly escaped. Does it contain a whitespace?

A couple of suggestions here:

1. Make sure that %SVN_BUILD%" and "%DEPLOY_DEST%" (and other)
variables are properly escaped, put them in quotes.
2. Make sure that the VisualSVN Server service account has access to
directories and files the hook scripts touches.

Hope it helps!
Thank you.

--
With best regards,
Pavel Lyalyakin
VisualSVN Team

-- 
You received this message because you are subscribed to the Google Groups 
"VisualSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to visualsvn+unsubscr...@googlegroups.com.
To post to this group, send email to visualsvn@googlegroups.com.
Visit this group at http://groups.google.com/group/visualsvn.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to