SystemFailer
Forum Replies Created
-
@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';@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.
- This reply was modified 7 years, 10 months ago by SystemFailer.
@smshahriar Yes, that is correct.
@zeeshanx Should be possible. Wish I have enough time to write it though 😀 Somebody else should be able to do so.
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
In reply to: [All-in-One WP Migration and Backup] foreign_keys preventing table dropsYeah 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
In reply to: [All-in-One WP Migration and Backup] foreign_keys preventing table dropsOh 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
In reply to: [All-in-One WP Migration and Backup] foreign_keys preventing table dropsI was using the latest version of the plugin.
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
In reply to: [Community by PeepSo - Download from PeepSo.com] Profile Field hooksAwesome, 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
In reply to: [All-in-One WP Migration and Backup] ai1wm_exclude_content_from_exportThank you 🙂
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] ai1wm_exclude_content_from_exportInside 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
Line# 134The 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.phpUpdated my copy of the plugin and tested it out. I am not seeing the warning anymore. Thank you