database icon indicating copy to clipboard operation
database copied to clipboard

Exporting all tables in zip results in one file with one table in it instead of all tables

Open Haran opened this issue 1 year ago • 1 comments

Steps to reproduce the issue

  1. Have regular joomla database and installation
  2. Run php cli/joomla.php database:export --folder ./tmp --zip
  3. Assert it succeeds

Expected result

  1. Have a file ./tmp/data_exported_<TIMESTAMP>.zip
  2. File ./tmp/data_exported_<TIMESTAMP>.zip contains all exported tables

Actual result

File ./tmp/data_exported_<TIMESTAMP>.zip contains only one (jos_workflows.xml) table, the last one

System information (as much as possible)

Joomla! 5.0.3

"name": "joomla/database",
"version": "3.0.0",
"version_normalized": "3.0.0.0",

Additional comments

This happens because ExportCommand creates one zip file over foreach ($tables as $table)

Haran avatar Mar 06 '24 12:03 Haran

@rdeutz Can't this issue be closed now as the corresponding PR #299 has been merged?

P.S.: I would close it myself but as you have added the "bug" label here after having merged the PR I thought maybe that has a reason, that's why I ask.

richard67 avatar Aug 15 '24 18:08 richard67

@rdeutz I just see I do not have the privileges in this repo to close this issue.

richard67 avatar Sep 01 '24 10:09 richard67

As Richard wrote, the PR is merged, so I'm closing this ticket.

Hackwar avatar Sep 01 '24 11:09 Hackwar