Having issues with setting up post-commit hook. 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: set TODAYSDATE=%date%_%time% set REV=%2 set REPOS=%1 set REPOS_NAME=myRepo set URL=myURL set SVN_BUILD=C:\SVN\build\%REPOS_NAME% set SVN_SRC=http://192.168.0.1/svn/%REPOS_NAME%/trunk/ set DEPLOY=WEBSERVER set USER=mparks set PASS=***** set DEPLOY_SRC=/cygdrive/c/SVN/build/%REPOS_NAME% set DEPLOY_DEST=/cygdrive/j/Websites/%URL%/testFINIAL set LOG=C:\SVN\logs\post_commit_log.txt REM get who did update to log FOR /f "tokens=*" %%a IN ( 'svnlook author --revision %REV% %REPOS%' ) DO ( SET UPDUser=%%a ) echo ============================= >> %LOG% echo %REPOS_NAME% r%REV% %TODAYSDATE% %UPDUser% >> %LOG% IF exist "%SVN_BUILD%" ( echo Do Switch: >> %LOG% svn switch --username %USER% --password %PASS% %SVN_SRC% %SVN_BUILD% >> %LOG% 2>&1 ) ELSE ( echo initial checkout: >> %LOG% svn checkout --username %USER% --password %PASS% %SVN_SRC% %SVN_BUILD% >> %LOG% 2>&1 ) 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. Anyone see my mistake or something I am doing wrong where? Thank you, Matthew C. Parks -- 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.