ueberbit/drush-gdpr-dump 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ueberbit/drush-gdpr-dump

Composer 安装命令:

composer require ueberbit/drush-gdpr-dump

包简介

README 文档

README

Prerequisites

Installation of gdpr-dump

This package depends on a fork of gdpr-dump. The relevant dependency updates are not yet merged into the original repository. Add the fork to your composer.json before installing ueberbit/drush-gdpr-dump package.

  "repositories": [
      {
          "type": "vcs",
          "url":  "https://github.com/webflo/gdpr-dump.git"
      }
  ],

See Smile-SA/gdpr-dump#200 for more details.

Patch for Drush

drush-ops/drush#6524 committed to drush 13.x - released in 13.7.3

Installation

composer require ueberbit/drush-gdpr-dump

Configuration

Add the gdpr-dump configuration to your project. It uses the same configuration as the original gdpr-dump.

see https://github.com/Smile-SA/gdpr-dump/wiki/Configuration-File

# Filename: gdpr-config.yaml

# https://github.com/Smile-SA/gdpr-dump/wiki/Configuration-File
extends: 'drupal8'

tables:
  authmap:
    truncate: true

  batch:
    truncate: true

  captcha_sessions:
    truncate: true

  comment_field_data:
    converters:
      hostname:
        converter: 'setNull'

  users_data:
    where: 'module <> "openid_connect" and name <> "oidc_name"'

  users_field_data:
    converters:
      mail:
        converter: 'randomizeEmail'
        unique: true
      pass:
        converter: 'randomizeText'
      init:
        converter: 'setNull'

    # Skip anonymization for users registered with ueberbit.de email domain.
    skip_conversion_if: 'str_ends_with((string) {{mail}}, "@ueberbit.de")'

  watchdog:
    truncate: true

Usage

# Dump sanitized database dump.

./vendor/bin/drush gdpr:dump > sanitized-dump.sql

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固