public function getDumpDataCommand($database, $username, $password, $outputPath, $tables = array())
    {
        $tables = array_map('escapeshellarg', $tables);

        $command = sprintf(
            'mysqldump %s %s -u %s -p%s --no-create-info > %s',
            escapeshellarg($database),
            implode(' ', $tables),
            escapeshellarg($username),
            escapeshellarg($password),
            escapeshellarg($outputPath)
        );

        return $command;
    }