Excluding Folders When Migrating with All-in-One WP Migration and Backup

The All-in-One WP Migration and Backup plugin is your go-to tool for site migration. When developing custom themes, you may use NPM or other package managers. These create folders to store files needed during development, but they don’t need to be deployed to the production environment. By excluding these dependency folders and any other folders you truly don’t need, you can significantly reduce the size of your site’s backup and save time during the development process.

Excluding Folders

You can specify particular folders or files to exclude by adding the following filter to the functions.php file.

<? php 
add_filter(‘ai1wm_exclude_content_from_export’,
function($exclude_filters) { $exclude_filters[] =
‘themes/your-theme-name/node_modules’; return $exclude_filters; });