Linux 软件免费装
Banner图

Cherrylift – Selective Content Sync

开发者 gdetassigny
更新时间 2026年10月19日 18:39
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

migration content sync staging deployment

下载

0.3.0

详情介绍:

Cherrylift copies the content you choose from one WordPress site to another, for example from staging to production, without migrating the database. Copying a whole database (or whole tables) overwrites everything created on the target since the last sync: orders, user accounts, form entries, comments. Cherrylift only moves the items you pick, plus everything they depend on, and leaves the rest of the target site alone. How it works
  1. On the source site, go to Tools → Cherrylift → Export, select content and download a package (a zip file).
  2. On the target site, upload it under Import. A preview shows what will be created or updated, and you can untick anything you don't want to change.
  3. Import. Every reference is remapped to the target site's IDs and URLs.
Features What is never synced Users, comments, orders and other non-content data, by design. Site settings, themes, plugins, menus, templates and global styles are not synced either. Source code The full source code, tests and issue tracker are on GitHub. The admin screen's JavaScript in build/ is compiled from src-js/ in that repository with @wordpress/scripts: run npm install and npm run build to rebuild it. Contributions are welcome; see CONTRIBUTING.md in the repository.

安装:

  1. Install and activate the plugin on both the source and the target site.
  2. Go to Tools → Cherrylift.
  3. Export from the source site, then import the package on the target site.
Imports from the admin screen are limited by PHP's upload size (upload_max_filesize and post_max_size). For very large packages, use WP-CLI on the target site: wp cherrylift import package.zip --user=admin

屏幕截图:

  • The export preview lists the selected items and every dependency added automatically, with the package size.
  • The import preview shows what will be created or updated on this site. Untick anything you want to keep unchanged.
  • The import report links to every imported item.

升级注意事项:

0.3.0 WP-CLI exports no longer take --file: packages are written to wp-content/uploads/cherrylift/exports/. 0.2.0 Renamed to Cherrylift: code using the old hooks, REST API or WP-CLI command must switch to the cherrylift names. 0.1.1 Maintenance release: safer error messages and packaging fixes. 0.1.0 Initial release.

常见问题:

Will importing overwrite my orders, users or form entries?

No. Only the items in the package are created or updated. Nothing else on the target site is changed.

What exactly ends up in a package?

The items you select, plus what they need to display correctly: parent pages, categories, tags and their parents, featured images, media used in the content, and synced patterns. The export preview lists every item before you download. Child pages are not included unless you select them.

What happens if I import the same package twice, or sync again later?

Items are updated in place. Each item carries a stable ID (stored as hidden metadata) that is used to recognize it on the target, so nothing is duplicated.

What if the target already has a page with the same slug that was created separately?

It is treated as the same page and updated, then linked for future syncs. This avoids "contact-2" duplicates on sites that were set up separately. Developers can turn this off with the cherrylift_match_existing_entity filter.

Can I keep some items on the target unchanged?

Yes. In the import preview, untick the items you don't want to create or update.

Are custom fields supported?

Custom fields (post meta and term meta) are copied. Fields that store IDs of other content (beyond featured images) are only remapped if a developer declares them with the cherrylift_id_reference_meta_keys filter. Advanced Custom Fields relationship, post object, image and gallery fields are not remapped automatically yet.

Some media wasn't imported. Why?

The target site only accepts file types allowed for uploads there. For example, SVG files are rejected by a default WordPress install. The import report lists anything that was skipped or failed.

Are links to other pages updated?

Links that point to the source site's domain are rewritten to the target site's domain. Links whose page has a different slug on the target are not adjusted.

Who can use it?

Administrators (the manage_options capability) by default. Developers can change this with the cherrylift_capability filter; WordPress's normal per-item permissions then still apply.

Is it safe to import a package someone sent me?

Only import packages you trust: a package is content from another site. Packages are validated before anything is extracted (sizes, file list, file types, checksums), and only content types can be written, never site configuration. Users without the unfiltered_html capability get their imported content filtered as usual.

I use nginx. Anything to configure?

Uploaded packages wait in wp-content/uploads/cherrylift/ until they are imported, and WP-CLI exports are written there too. Their names are random and the folder blocks web access with an .htaccess file, which nginx ignores. Add a location ^~ /wp-content/uploads/cherrylift/ { deny all; } rule to block it there too.

Does it work on multisite?

Multisite networks haven't been tested yet. Syncing directly between sites of the same network isn't supported: export from one site and import on the other.

更新日志:

0.3.0 0.2.0 0.1.1 0.1.0