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

wp revisions prune #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

drzraf
Copy link

@drzraf drzraf commented Sep 7, 2021

A wp revisions prune command acting as a Unix (pipe-friendly) to select which revisions to prune/keep from a CSV list generated by wp revisions list.

Can be seen as an alternative approach to wp revision clean inspired by restic/borg backup tools: hourly/daily/weekly/monthly/yearly time intervals (on top of the traditional before/after/last).

It does not write to the database but used with --list=removed it outputs a list of revisions ID to remove which can be easily passed on to wp post delete

… filter

 to select which revisions to prune/keep.
@drzraf
Copy link
Author

drzraf commented Sep 24, 2021

ping?

@drzraf
Copy link
Author

drzraf commented Sep 27, 2021

In case anyone else needs this: It's at https://github.com/drzraf/wp-revisions-prune since it allows pruning revision without a need for wp-revisions-cli.

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

Successfully merging this pull request may close these issues.

1 participant