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

Lite export #72

Open
1 task done
Mte90 opened this issue Oct 9, 2020 · 5 comments · May be fixed by #115
Open
1 task done

Lite export #72

Mte90 opened this issue Oct 9, 2020 · 5 comments · May be fixed by #115

Comments

@Mte90
Copy link

Mte90 commented Oct 9, 2020

Feature Request

Describe your use case and the problem you are facing

wp export post__in="196219,213336,210457,208635,209995"

If I run this I am getting the full list of authors and categories but I just want the articles.
As I can see also that the author is not exported in any article.

Describe the solution you'd like

Just export what I am asking for and not everything.

@pawelkmpt
Copy link

pawelkmpt commented May 30, 2022

I just tried to export one post from a huge site. I ended up with 2 files having together around 1 milion rows.
Content I asked for was around 400 lines. At the end of the second file.

Export process used 2GB of memory. This can't work like that.

@pawelkmpt
Copy link

This helps a bit.

wp export --post__in=1234 --author=$(wp post get 1234 --field=post_author) --post_type=$(wp post get 1234 --field=post_type)

@danielbachhuber
Copy link
Member

We could add --skip_authors and --skip_terms as additional flags.

@nir-riskified
Copy link

Hey @danielbachhuber - Any update on that? --slip_authors flag could be very nice.

@danielbachhuber
Copy link
Member

No updates. Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices.

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

Successfully merging a pull request may close this issue.

5 participants