Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module generates configuration for the DB Anonymizer tool, which helps create anonymized database copies of your live site. This allows you to export a smaller subset of your data, protecting sensitive information while still enabling debugging and development. You can configure the percentage of data to export and handle related data across tables.

This is a DB Anonymizer config generator for drupal sites. DB Anonymizer is a tool that can:

  1. Do full/partial data export from database.
  2. Anonymize data on the fly during the export.

Why do I need it?

Have you ever faced some issues that require you to copy a DB from live site to your local site to debug and fix it? In some cases this may be not a straight forward task, because:

  • Live DB may take dozens GBs of space.
  • It may contain some sensitive data that developers should never see, e.g: real names, passport numbers, phone numbers, etc.

Using DB Anonymizer you can create a partial DB dump that has for example 5% of actual data and anonymize it. And yes - if some table has related data in other tables, it could be exported as well. You can configure the amount of data to export for each table.

Usage

  1. Install and enable this module as usual.
  2. Go to /admin/dbanonymizer-config-generator page, where you can copy generated config for your site.

Keep in mind that you may still need to change this config to fit your needs, but this would be a good starting point as generator had done all the hard lifting for you. Think of some custom db tables (and their relations) that your site may have, consider adding them to the config as well. You might also want to add anonymization config for some tables (e.g. fields).

Then you can use that config as usual, see DB Anonymizer readme for more details.
Also check this module readme for some highlights.

Activity

Total releases
1
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.1.3 Stable Jun 14, 2025