function backup_migrate_exec

cis7 backup_migrate.module backup_migrate_exec($command, $args = array())
cle7 backup_migrate.module backup_migrate_exec($command, $args = array())
elmsmedia7 backup_migrate.module backup_migrate_exec($command, $args = array())
icor7 backup_migrate.module backup_migrate_exec($command, $args = array())
meedjum_blog7 backup_migrate.module backup_migrate_exec($command, $args = array())
mooc7 backup_migrate.module backup_migrate_exec($command, $args = array())

Execute a command line command. Returns false if the function failed.

1 call to backup_migrate_exec()
backup_migrate_destination_db_mysql::_backup_db_to_file_mysqldump in sites/all/modules/ulmus/backup_migrate/includes/destinations.db.mysql.inc
Backup the databases to a file using the mysqldump command.

File

sites/all/modules/ulmus/backup_migrate/backup_migrate.module, line 1064
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)

Code

function backup_migrate_exec($command, $args = array()) {
  if (!function_exists('exec') || ini_get('safe_mode')) {
    return FALSE;
  }

  // Escape the arguments
  foreach ($args as $key => $arg) {
    $args[$key] = escapeshellarg($arg);
  }
  $command = strtr($command, $args);
  $output = $result = NULL;

  // Run the command.
  exec($command . ' 2>&1', $output, $result);

  return $result == 0;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.