[4.1] Export / Import the database in the admin form#26248
[4.1] Export / Import the database in the admin form#26248twister65 wants to merge 62 commits intojoomla:4.1-devfrom
Conversation
|
For security purposes I would expect to see the uploaded db dump deleted from the server after it has been used. I would also expect to see some "uniqueness" in the export file name instead of just joomla_db.zip. Probably including the site name and a time stamp. |
|
Notice: Constant JPATH_ROOT already defined in C:\htdocs\joomla-cms\administrator\components\com_installer\Model\DatabaseModel.php on line 14 |
|
Looking at the zip file I can see that it fails to open because at the top of the file before the zipped data is the markup for the html of the page |
|
My gut is to close this as it's technically no different to the feature we rejected here #15819 (comment) - Anything you'd like to add that hasn't already been discussed there? |
|
This is a gui for PR #24733. This is just a draft and all comments are welcome. It works with PostgreSQL, but there are some recent bugs when importing into the MySQL database (regardless of this PR). |
|
Referring to @wilsonge comment #26248 (comment), I close this. Note that postgresql is no longer supported by Akeeba Backup. |
|
@twister65 at least thanks to your work, we can use the CLI command for this... |
|
Bug fixes for the database importer / exporter are here: |
|
Reopened for test purposes only, at my convenience. |
@brianteeman , could you precise your system informations ? |
|
I have tested this item ✅ successfully on 5cb9f08 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26248. |
|
@berndkohlen , please see my previous comment: #26248 (comment) |
|
I have tested this item ✅ successfully on ea0ba05 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26248. |
1 similar comment
|
I have tested this item ✅ successfully on ea0ba05 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26248. |
|
I have tested this item ✅ successfully on bfbf948 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26248. |
|
I have tested this item ✅ successfully on bfbf948 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26248. |
|
@twister65 The |
administrator/components/com_installer/src/View/Database/RawView.php
Outdated
Show resolved
Hide resolved
administrator/components/com_installer/tmpl/database/default_import.php
Outdated
Show resolved
Hide resolved
administrator/components/com_installer/tmpl/database/default_update.php
Outdated
Show resolved
Hide resolved
administrator/components/com_installer/tmpl/database/default_update.php
Outdated
Show resolved
Hide resolved
administrator/components/com_installer/tmpl/database/default_update.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Replace spaces with tabs.
|
Hello, As stated already, this PR is in my opinion not an improved solution to #15819 which was rejected for valid reasons. It also has the some additional challenges + e.g. missing the "time out protection". So I close this PR. |


This pull request aims to export and import all the database in a package (zip file).
Summary of Changes
Add the Export / Import functionality to the System->Database view:

Testing Instructions
Apply this PR:
1- Click on Export button.
2- Select the zip file downloaded in the import box.
3- Click on Import button.
Expected result
Actual result
Documentation Changes Required