function acquia_migrate_exclude in Acquia Connector 7.2
Same name and namespace in other branches
- 6.2 acquia_agent/acquia_agent.migrate.inc \acquia_migrate_exclude()
1 call to acquia_migrate_exclude()
- _acquia_migrate_archive_site in acquia_agent/
acquia_agent.migrate.inc
File
- acquia_agent/
acquia_agent.migrate.inc, line 336 - Upload to Acquia Cloud.
Code
function acquia_migrate_exclude($migration) {
$exclude = array(
'.',
'..',
'.git',
'.svn',
'CVS',
'.bzr',
);
// Exclude the migration directory.
$exclude[] = basename($migration['dir']);
if (!variable_get('acquia_migrate_files', 1)) {
$exclude[] = realpath(variable_get('file_public_path', conf_path() . DIRECTORY_SEPARATOR . 'files'));
}
return $exclude;
}