Detailed guide. An unofficial adaptation of User Guide 12.3. Source updated April 14, 2025; reviewed November 6, 2026. No running-Drupal procedure test has been performed.
Official source ↗ · Previous: 12.2 Clearing and Rebuilding Cache · Chapter 12 overview · Next: 12.4 Using Logs to Investigate Site Behavior
Why backups matter
Backups support recovery from failures, compromise, lost access and mistakes. Keep copies separately from the running server. Choose frequency and retention according to change rate and acceptable loss, retaining several generations because problems may be discovered late.
Source backup scope
Include sites data and settings.php, the database, uploaded files in their configured locations, and custom modules/themes or other changed software. Some operators retain all software rather than relying on re-downloads.
Check /admin/config/media/file-system and actual settings. Our additions are to account for private files outside the public root, composer.json/lock and environment details needed for restoration. Git alone does not capture database content or uploads.
Our restore verification examples
We do not prescribe truncating live tables. Obtain consistent data and files using the chosen backup method. Dumps and settings can contain secrets; keep them out of public storage and control access and retention.
Restore into a separate environment, such as 11.8’s development copy , checking login, content, images and necessary settings. File existence alone does not prove recoverability. No backup or restore was performed here.
Sources, credits and changes
Source: Drupal User Guide 12.3 ↗ . Contributors and source links listed in its Attributions: Jennifer Hodgdon ↗ . Refer to the source for writing, editing and adaptation roles, and to the guide-wide credits ↗ .
Copyright remains with the individual contributors; the official copyright page ↗ states © 2015–2025. Changes include reorganized explanations and procedures, our preparation and verification examples, troubleshooting notes, source-interpretation qualifications and release references. Original screenshots and videos are not reproduced. This adapted text is shared under CC BY-SA 2.0 . It is not an official edition or endorsement. This notice does not license unrelated articles or the site design.
Chapter navigation
Previous: 12.2 Clearing and Rebuilding Cache · Chapter 12 overview · Next: 12.4 Using Logs to Investigate Site Behavior
Chapter 11 details · Chapter 13 · All chapters · Search official information