Conversation
wp sync --database runs the database side only (export/import, URL replace, plugin management), wp sync --media only the file transfers (uploads, and the plugins folder on vanilla projects). The --no- variants skip a part instead, and no flags syncs everything as before. Media-only syncs skip maintenance mode, as the database is never touched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds flags to
wp syncfor syncing just the database or just the uploads folder, saves pulling a few GB of uploads down when you only need a fresh db, or the other way round.wp sync— everything, same as nowwp sync --database— database, URL replace and plugin management onlywp sync --media— uploads (and the vanilla plugins folder) only--no-database/--no-media— skip a part insteadMedia-only syncs skip maintenance mode since the database is never touched.
Been using this on my own projects for a while and thought I'd share it in case you want it — no worries if not.