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 sub-sites to ZIP files #74

Open
jeffpaul opened this issue Feb 19, 2020 · 1 comment
Open

Export sub-sites to ZIP files #74

jeffpaul opened this issue Feb 19, 2020 · 1 comment

Comments

@jeffpaul
Copy link
Member

Is your enhancement related to a problem? Please describe.
This request came in via Twitter in terms of how to further improve MU Migration.

Describe the solution you'd like

The one thing I would love to see would help bypass my script would be the ability to export all of the sub sites into their own .zip file.

Designs

n/a

Describe alternatives you've considered

n/a

Additional context

n/a

@nicholasio
Copy link
Member

nicholasio commented Feb 21, 2020

This can already be accomplished with the existing wp-cli commands by creating a bash script, e.g:

for url in $(wp site list --format=csv --fields=url | tail -n +2)
do
  wp mu-migration export all $url.zip --url=$url
done

Didn't test the code above but it should be a good starting point.

@jeffpaul Maybe add this to the readme as an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants