# FTP Mirror Exclude Directory

**URL:** <https://www.finalbuilder.com/forums/t/ftp-mirror-exclude-directory/4600>\
**Category:** Discussion\
**Created:** [July 13, 2015, 4:01am UTC](https://www.finalbuilder.com/forums/t/ftp-mirror-exclude-directory/4600 "2015-07-13T04:01:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![esco](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@esco](https://www.finalbuilder.com/forums/u/esco)\
**Post date:** [July 13, 2015, 4:01am UTC](https://www.finalbuilder.com/forums/t/ftp-mirror-exclude-directory/4600/1 "2015-07-13T04:01:59Z")

</div>

Hi Support  
  
I am trying to exclude certain folders from a backup we are doing via FTP mirror. I can’t seem to get this to work. Can you include whole folders with multiple sub folders within them?  
  
I had tried using a File Mask type and an exclude value of WWW/ugc/\_archive/\* which is the folder location.  
  
Thanks  
Andrew

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [July 14, 2015, 1:06am UTC](https://www.finalbuilder.com/forums/t/ftp-mirror-exclude-directory/4600/2 "2015-07-14T01:06:56Z")

</div>

Hi Andrew,   
  
 Yes this should work. My thought is that potentially the string being used in the match doesn’t exactly match the initial part of the folder to exclude.   
  
 I suggest setting up a test script where verbose logging is turned on. It should report what it sees as the file names when mirroring (in either direction). From this you should get a clearer idea of what the file mask should be. Let me know how that goes.   
  
 If it still doesn’t work please feel free to send me the test script with the connection details removed. I will also need to know the FTP server your working with, there may be compatibility issues with regards to how it returns folder/file names.

---

<div class="post-metadata">

**Author:** ![esco](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@esco](https://www.finalbuilder.com/forums/u/esco)\
**Post date:** [July 14, 2015, 12:14pm UTC](https://www.finalbuilder.com/forums/t/ftp-mirror-exclude-directory/4600/3 "2015-07-14T12:14:07Z")

</div>

Hi Jason  
  
I still can’t get it to work so I have emailed you.  
  
Thanks  
Andrew
