Efficient way to copy files over VPN

 Hi -

  BACKGROUND 

  Our build machine is a Windows XP machine running FinalBuilder 5 Professional Edition.   The build machine lives on our network.

   We have a new web server which is hosted at an off-site location.  

   Our build machine access this new web server across a VPN.

 ISSUE

    On our new web server we have Cert and Prod code.

    On our build machine I can have FB map a network drive to the appropriate cert folder on our web server.

    I can then build a fileset for Cert code and have the appropriate files copied to Prod.

    The problem is the build is extremely slow - I assume each file is coming down the VPN to the build machine and then back up to the web server.       

     Any thoughts on how to improve the speed and not have the files come across the VPN to the build machine?  

   I have thought about building a web service on the build machine which I could pass commands to do the copy operation but that feels like too much work. 

   I will look at using UNC instead of a mapped drive letter the problem is we use credentials to establish the mapped drive letter.  Not sure how to establish these credentials in FB for a UNC.

   I appreciate anyones input.

   Thanks 

 

 

Hi Rob

What sort of project is it you are building? If it’s a web project then you might need to configure the solution to work with localhost, otherwise it might indeed be working on the solution on the server, which would be painfully slow over a vpn. You really need to be building with local files and then copying the resulting binaries etc to the server, using something like the robocopy action to update only the files that have changed.

Hi Vincent -

I made a simple PDF drawing showing what I am doing. I’m trying to figure out how to attach the drawing to this post.

Just think of this project as simply copying files from one folder to another folder, except the folders exist under a mapped drive letter and where the mapped drive letter lives is on another server accessed via VPN.

Thanks -

Rob

Here is the attachment. 

FinalBuilderDiagram.pdf (24.462 KB)

Ok, one option is to install FinalBuilder on the remote server and have it build the fileset and zip it up, so you are only transferring a single file across the vpn. You could use PSTools (PSExec action) from the build machine to execute FBCMD on the build machine. I run a vpn between here and my home and do this often, it’s much more efficient to transfer 1 large file than multiple small files.

Another option is to try using FTP rather than windows file copying, it might be more efficient over a slow network connection.

it looks like the cert folder and the prod folder are on the same remote server. try using psexec to call robocopy or xcopy locally on the remote server to copy the files, without having to go back to the build machine.

Thanks for the information Eric.  I will look into psexec for future reference.

For this problem I decided to build a web service that could be called by a custom action in Sitecore.