Skip to content

sql:dump includes path to sqlite3 database file in result-file=auto filename #5010

@bradbulger

Description

@bradbulger

My site is running on an sqlite3 db file in ../database/.ht.sqlite (relative to the site root directory). SqlBase::dumpFile() is using the whole database name, including the path, to create the "auto" filename for sql:dump. That fails as a bad path.

If I add a line to set $database = basename($database) it works. That's hardly likely the right way to fix it, I'm sure.

System Configuration

Q A
Drush version? 11.0.0
Drupal version? 9.x
PHP version 7.4
OS? Mac & Linux

Additional information
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions