Introduce database dumping, and use it before update.php is run.

Created on 12 June 2011, almost 14 years ago
Updated 12 May 2025, about 13 hours ago

While this patch isn't anywhere nere done, here's a first stab at introducing a database dump mechanism into Drupal. I implemented it at the database level, because each database is going to have its own way of dumping (for example, for SQLLite, the whole file can be copied).

The dumping code itself, so far implemented for only MySQL, is taken nearly-verbatim from demo.module (the Demonstration Site module).

I also included an example of how this could be included into update.php. I haven't included any code for database restore, but I think it wouldn't be too difficult to present a restore screen if an error occurs (and also, it probably wouldn't be too difficult to implement the database-level restore).

I'm looking for general feedback on the patch, and if anyone wants to take this further, that'd be great too.

✨ Feature request
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

database system

Created by

πŸ‡ΊπŸ‡ΈUnited States dmitrig01

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024