Let's add a task button for this.

Original issue from Aegir Hosting Remote Import

When importing sites into Dev and Staging environments from Production, it would be best if the database were sanitized (i.e. scrubbed of data that can be misused during development and testing).

So let's provide a checkbox that, when checked, will run drush sql-sanitize after the import completes.

The Drush command also provides hooks to add custom sanitization on top of e-mail addresses and passwords. Users can implement these in one of their custom hostmaster modules if they wish.

Comments

colan created an issue. See original summary.

colan’s picture

There's been some talk of making this an independent task, and moving it to hosting_tasks_extra so it could also be used by hosting_sync as well as hosting_remote_import. Thoughts?

colan’s picture

Title: Provide option to sanitize database after import » Provide option to sanitize database
Project: Aegir Hosting Remote Import » Aegir Hosting Tasks Extra
colan’s picture

Issue summary: View changes
colan’s picture

This can be implemented via the work done in #2912492: Allow hook_hosting_tasks to specify "command".

colan’s picture

Title: Provide option to sanitize database » Add "Sanitize database" site task
colan’s picture