locked
Skip files from syncing in Web Farm framework using skipDirectives RRS feed

  • Question

  • User1220989902 posted

    Hello, 

    I am trying to set up WFF and skip certain files from syncing. Below is the file structure for my IIS installation:

    D:\Web\default_site - Default Web Site

    D:\Web\Site1 - Site1

    D:\Web\Site2 - Site2

    I am using skipDirectives in applicationHost.config on the controller server to skip lbtest.asp and lbtest.bak files located on root of each site (Default, Site1, Site2).

     <skipDirectives>

        <skip name="skipfile1" skipDirectives="objectName=^filePath$,absolutePath=\\lbtest\.asp$'"

       <skip name="skipfile2" skipDirectives="objectName=^filePath$,absolutePath=\\lbtest\.bak$'"

     </skipDirectives>

    Unfortunately, the files are still syncing. 

     

    Monday, December 2, 2013 4:04 PM

All replies

  • User1030553310 posted

    Hi,

    Try to change your code as below:

    <skipDirectives>
    
        <skip name="skipfile1" skipDirectives="objectName=filePath,absolutePath=\\lbtest\*.asp'"
    
       <skip name="skipfile2" skipDirectives="objectName=filePath,absolutePath=\\lbtest\*.bak'"
    
     </skipDirectives>
    

    Hope it helps.

    Best Regards,
    Terry Guo

    Wednesday, December 4, 2013 4:13 AM