You are here

function acquia_migrate_exclude in Acquia Connector 6.2

Same name and namespace in other branches
  1. 7.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 321
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('.') . DIRECTORY_SEPARATOR . str_replace(realpath('.') . DIRECTORY_SEPARATOR, '', realpath(file_directory_path()));
  }
  return $exclude;
}