sites/%s/database.sql", $data['db_user'], $data['db_passwd'], $data['db_name'], $url); provision_shell_exec("cd sites/%; tar -rf %s database.sql; rm database.sql", $url, $data['backup_file']); } /** * Implementation of hook_provision_verify * * Can't be rolled back. */ function provision_mysql_provision_verify() { provision_set_active_db(_provision_master_db_url()); if (!_provision_mysql_can_create_database()) { provision_set_error(PROVISION_DB_ERROR | PROVISION_FRAMEWORK_ERROR); provision_log('error', t('Unable to create new databases.')); } else { provision_log("message", t('Mysql can create new databases.')); } provision_set_active_db(); }