Skip to content
Amaury Balmer edited this page Jul 12, 2018 · 7 revisions
### Regular queue
wp site list --field=url --url="NETWORK_URL" | xargs -I {} wp content-sync-fusion queue pull --url={}

### Check for resync content (new site/blog)
wp content-sync-fusion resync new_sites --attachments=true --post_type=true --taxonomies=true --url="NETWORK_URL"

### Alternative queue
wp site list --field=url --url="NETWORK_URL" | xargs -I {} wp content-sync-fusion queue pull --url={}  --alternativeq="true"

You must replace NETWORK_URL by a real value.

An alternate syntax :

for url in $(wp site list --field=url --url="NETWORK_URL"); do wp content-sync-fusion queue pull --url=$url ; done

We recommend to exec this task each minute : */1 * * * *

Clone this wiki locally