Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export should match the Drush archive manifest #76

Open
mglaman opened this issue Aug 6, 2024 · 0 comments
Open

Export should match the Drush archive manifest #76

mglaman opened this issue Aug 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mglaman
Copy link
Owner

mglaman commented Aug 6, 2024

Drush has an archive:dump and archive:restore. In Drupal Slack, moshe made me aware of these commands and that both Acquia and Pantheon support importing a Drupal site from this format: https://drupal.slack.com/archives/C62H9CWQM/p1722430197373169

Due to the SAPI name being embed, we can't invoke Drush directly, and the ArchiveDumpCommands command uses processes directly, we need to create a compatible version for ourselves. The export.php script can make a compatible archive.

This also solves #11 and #10 as users can take the archive and use ddev drush archive:restore.

Something like:

mkdir my-drupal-site && cd my-drupal-site
mv ~/Downloads/drupal.zip .
ddev config --project-type=drupal --php-version=8.3 --docroot=web
ddev start
ddev drush archive:restore drupal.zip
@mglaman mglaman added this to the Export to DDEV milestone Aug 6, 2024
@mglaman mglaman added the enhancement New feature or request label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant