Title: SystemFailer's Replies | WordPress.org

---

# SystemFailer

  [  ](https://wordpress.org/support/users/systemfailer/)

 *   [Profile](https://wordpress.org/support/users/systemfailer/)
 *   [Topics Started](https://wordpress.org/support/users/systemfailer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/systemfailer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/systemfailer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/systemfailer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/systemfailer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/systemfailer/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] How to skip a directory during creating a backup](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/)
 *  [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/#post-10457205)
 * [@smshahriar](https://wordpress.org/support/users/smshahriar/) As far as I know,
   the plugin only exports files inside wp-content/
 * But if it is for you, you can try
 *     ```
       $exclude[] = '../wp-admin/includes';
       $exclude[] = '../outsidefolder';
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] How to skip a directory during creating a backup](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/)
 *  [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/#post-10457156)
 * [@smshahriar](https://wordpress.org/support/users/smshahriar/) The plugin does
   not backup folders above wp-content/ but inside wp-content/ it should be relative
   to that folder, so you can use `$exclude[] = 'plugins/akismet/storage';`
    or `
   $exclude[] = 'themes/avada/includes';`
 * I haven’t tried it yet though but it should work.
    -  This reply was modified 7 years, 10 months ago by [SystemFailer](https://wordpress.org/support/users/systemfailer/).
    -  This reply was modified 7 years, 10 months ago by [SystemFailer](https://wordpress.org/support/users/systemfailer/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] How to skip a directory during creating a backup](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/)
 *  [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/#post-10457112)
 * [@smshahriar](https://wordpress.org/support/users/smshahriar/) Yes, that is correct.
 * [@zeeshanx](https://wordpress.org/support/users/zeeshanx/) Should be possible.
   Wish I have enough time to write it though 😀 Somebody else should be able to
   do so.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] How to skip a directory during creating a backup](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/)
 *  [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/how-to-skip-a-directory-during-creating-a-backup/#post-10456993)
 * Actually, it is possible to exclude a folder on your export, you just need to
   use the ‘ai1wm_exclude_content_from_export’ filter.
 * Just add the following code in your theme’s functions.php:
 *     ```
       add_filter( 'ai1wm_exclude_content_from_export', function( $exclude ) {
       	$exclude[] = 'cache';
       	return $exclude;
       } );
       ```
   
 * Just change ‘cache’ to the ‘folder name’ you want to exclude.
 * I’ve been using this filter for ages because the plugin indiscriminately includes
   all folders in the wp-content folder without an easy way to exclude them via 
   the Advanced Options.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] foreign_keys preventing table drops](https://wordpress.org/support/topic/foreign_keys-preventing-table-drops/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/foreign_keys-preventing-table-drops/#post-8819570)
 * Yeah that must be why foreign keys to wp_post and wp_users aren’t detect from
   plugins that don’t prefix their tables, so it should be fairly safe to do a SET
   foreign_key_checks = 0; since it would simply duplicate the database anyway so
   there shouldn’t be any problem by ignoring foreign key checks when importing 
   a database.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] foreign_keys preventing table drops](https://wordpress.org/support/topic/foreign_keys-preventing-table-drops/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/foreign_keys-preventing-table-drops/#post-8815430)
 * Oh and the table that had a foreign key to wp_post didn’t have the ‘wp_’ prefix
   so that could be a suspect on why the plugin didn’t detect the foreign key?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] foreign_keys preventing table drops](https://wordpress.org/support/topic/foreign_keys-preventing-table-drops/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/foreign_keys-preventing-table-drops/#post-8815417)
 * I was using the latest version of the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] Import error caused by `active_plugins` not being copied over](https://wordpress.org/support/topic/import-error-caused-by-active_plugins-not-being-copied-over/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/import-error-caused-by-active_plugins-not-being-copied-over/#post-8694927)
 * Hi Pim,
 * They won’t be stored in package.json if you check “Do not export plugins” though.
   So with “Do not export plugins” checked and AI1WM_ACTIVE_PLUGINS/active_plugins
   ignored, all plugins will get disabled on the target machine upon import.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Community by PeepSo - Download from PeepSo.com] Profile Field hooks](https://wordpress.org/support/topic/profile-field-hooks/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/profile-field-hooks/#post-8567877)
 * Awesome, I will be awaiting for that version, thanks! 🙂
 * Actually most of the functions inside the profile field files on the core and
   the extension plugins are severely lacking of hooks and filters. For the other
   sections that I have touched lately, there are ample hooks so I have been able
   to utilize them without any problem. But if I find any other sections that does
   not have hooks/filters, I will definitely throw out a message again. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] ai1wm_exclude_content_from_export](https://wordpress.org/support/topic/ai1wm_exclude_content_from_export/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/ai1wm_exclude_content_from_export/#post-7489626)
 * Thank you 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-in-One WP Migration and Backup] ai1wm_exclude_content_from_export](https://wordpress.org/support/topic/ai1wm_exclude_content_from_export/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/ai1wm_exclude_content_from_export/#post-7489597)
 * Inside my wp-content folder there are additional folders added to by other plugins
   that they use to store additional files, similar to how you store your exported
   files inside “ai1wm-backups”. Sometimes people also have their repository root
   inside wp-content so that it will include the themes and plugin folders, so this
   way there will be a .git folder inside wp-content. However, doing this would 
   make ai1wm plugin export those folders as well and there is no option on the 
   advanced options to exclude these additional folders nor a filter to modify the
   exclude array anymore.
 * Before version 5, there was a filter “**ai1wm_exclude_content_from_export**” 
   that could be used to tell ai1wm to ignore specific folders or files by adding
   them in the exclude filter array:
    [https://plugins.svn.wordpress.org/all-in-one-wp-migration/tags/4.19/lib/model/class-ai1wm-export-abstract.php](https://plugins.svn.wordpress.org/all-in-one-wp-migration/tags/4.19/lib/model/class-ai1wm-export-abstract.php)
   Line# 134
 * The current version don’t have the filter anymore:
    [https://plugins.svn.wordpress.org/all-in-one-wp-migration/tags/5.43/lib/model/export/class-ai1wm-export-enumerate.php](https://plugins.svn.wordpress.org/all-in-one-wp-migration/tags/5.43/lib/model/export/class-ai1wm-export-enumerate.php)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Adminer] [BUG] Declaration of AdminerPlugin::* should be compatible with Adminer::*](https://wordpress.org/support/topic/bug-declaration-of-adminerplugin-should-be-compatible-with-adminer/)
 *  Thread Starter [SystemFailer](https://wordpress.org/support/users/systemfailer/)
 * (@systemfailer)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bug-declaration-of-adminerplugin-should-be-compatible-with-adminer/#post-7018104)
 * Updated my copy of the plugin and tested it out. I am not seeing the warning 
   anymore. Thank you

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