Title: Cannot exclude specific folders
Last modified: June 8, 2017

---

# Cannot exclude specific folders

 *  Resolved [Castor](https://wordpress.org/support/users/castoruk/)
 * (@castoruk)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/)
 * Hi
 * I’ve just noticed that I can no longer exclude sub-folders in the Files tab.
 * When I tick the options and save they just become unticked again.
 * For instance I can no longer exclude a ‘cache’ folder user the ‘Backup content
   folder’.
 * I can still untick the parent option (Backup content folder) and save. Just not
   the sub-folders.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9208988)
 * Hi [@castoruk](https://wordpress.org/support/users/castoruk/), that’s certainly
   unusual. What version of PHP are you running?
 *  Thread Starter [Castor](https://wordpress.org/support/users/castoruk/)
 * (@castoruk)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9209114)
 * Hi
 * PHP 7.0.19.
 * This is happening across multiple sites on the same servers.
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9209287)
 * [@castoruk](https://wordpress.org/support/users/castoruk/), could you enable `
   WP_DEBUG` and see if you get any PHP error messages?
 *  Thread Starter [Castor](https://wordpress.org/support/users/castoruk/)
 * (@castoruk)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9212004)
 * I enabled WP_DEBUG but the only notices that came up where warnings about ‘deprecated
   constructors’ in other plugins.
 * Nothing about BackWPup.
 * I checks for any JS errors in the console, nothing there.
 * I also checked a couple of other browsers but once again it was the same with
   them.
 * Very odd.
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9212735)
 * Hi [@castoruk](https://wordpress.org/support/users/castoruk/), we’ve been unable
   to reproduce this issue. The only thing I can suggest is if you can give us temporary
   access to wp-admin and FTP, we can investigate why it’s not working on your system.
   You can [contact us here](https://backwpup.com/contact) and we’ll be happy to
   take a look. We’ve tested on PHP 5.4, 5.6, and 7.0 and for us it is working on
   all environments.
 *  [andy_fraley](https://wordpress.org/support/users/andy_fraley/)
 * (@andy_fraley)
 * [9 years ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9221361)
 * I’m having the exact same problem. Were you able to resolve the issue?
 * I’m running PHP 7.0.19, Apache 2.4.6, CentOS 7.3.1611.
 * Please advise. Thanks!
 * -Andy
 *  Thread Starter [Castor](https://wordpress.org/support/users/castoruk/)
 * (@castoruk)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9227264)
 * Hi Brandon
 * Unfortunately our IG section will not allow us to grant admin/ftp access to a
   3rd party.
 * However Andy Fraley has indicated he is experiencing the same issue so maybe 
   he can assist with your request?
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9231447)
 * Thanks [@castoruk](https://wordpress.org/support/users/castoruk/), I certainly
   understand.
 * [@andy_fraley](https://wordpress.org/support/users/andy_fraley/), if you are 
   still having the issue, it’d certainly be helpful if you could grant us access
   as described above. Feel free to email us and we’ll take care of it.
 *  [andy_fraley](https://wordpress.org/support/users/andy_fraley/)
 * (@andy_fraley)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9239277)
 * Hi Brandon,
 * Yes, we still have the issue. Sorry it took 3 days to get back. I wanted to reproduce
   on a cloned AWS EC2 instance (took a while to set that up) so I didn’t have to
   give access to our production. And I wanted to ensure the clone would exhibit
   the same bug. It does. I’ll reach out to you and get you root access and WP admin
   login details for the cloned AWS EC2 instance.
 * Thanks in advance for taking a look!
 * -Andy
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9242415)
 * [@andy_fraley](https://wordpress.org/support/users/andy_fraley/), thanks for 
   contacting us. I’m just confirming here that we got the issue fixed.
 * [@castoruk](https://wordpress.org/support/users/castoruk/), if you’d like the
   fix prior to release, here’s basically what you do:
 * In the file backwpup/inc/class-jobtype-file.php, you’ll find this on line 216:
 * `'backuprootexcludedirs' => array( 'filter' => FILTER_SANITIZE_URL, 'flags' =
   > FILTER_FORCE_ARRAY ),`
 * Simply add the following after the above line:
 * `'backupcontentexcludedirs' => array( 'filter' => FILTER_SANITIZE_URL, 'flags'
   => FILTER_FORCE_ARRAY ),`
 * That should fix the issue for you. Please confirm here whether it does work for
   you.
 *  Thread Starter [Castor](https://wordpress.org/support/users/castoruk/)
 * (@castoruk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9251485)
 * Hi Brandon
 * Will this be included in a future updated?
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9251841)
 * [@castoruk](https://wordpress.org/support/users/castoruk/), yes, this will be
   in 3.4.1, to be released very soon.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Cannot exclude specific folders’ is closed to new replies.

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/cannot-exclude-specific-folders/#post-9251841)
 * Status: resolved