Linux 软件免费装
Banner图

SiteRelay

开发者 u5ama
更新时间 2026年11月10日 23:08
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

backup migration multisite wp-cli staging

下载

1.0.0 1.0.1

详情介绍:

SiteRelay copies a WordPress site (its database, its files, or both) to another WordPress site, and keeps a way back. What makes SiteRelay different Pull and push Backups, export and import A way back Multisite And Security Every request between two sites is signed with the access key's secret (HMAC-SHA256) and can be used only once; the answers are signed too. Secrets are stored encrypted. Nothing passes through a third party: the two sites talk to each other.

安装:

  1. In WordPress, go to Plugins → Add New, search for "SiteRelay", click Install Now, then Activate. On a multisite network, install it from Network Admin and click Network Activate.
  2. Open Tools → SiteRelay (on a network: Network Admin → SiteRelay).
  3. To pull or push, install SiteRelay on the other site too. There, create an access key under Access keys, and paste its connection string into Pull or Push here.

屏幕截图:

  • Pulling a subsite from a network: choose what to copy, and see what will happen before it does.
  • A backup in progress, step by step.
  • Find & Replace preview: every change before and after, and nothing changed yet.
  • History: every job with its result, and an undo from its restore point.
  • Backups: copies of the site, whole or in parts, to restore or download, or one uploaded from another site.

升级注意事项:

1.0.1 SiteRelay's screens are ready for WordPress' move to React 19. 1.0.0 First release on WordPress.org, as SiteRelay (formerly Relay). Coming from Relay 0.9.x? See the FAQ: your data carries over.

常见问题:

Does SiteRelay have to be on both sites?

To pull or push, yes. To restore a backup on another site, only that site needs SiteRelay: download the backup here and import it there.

What does a backup hold?

By default the whole site: the database, themes, plugins, must-use plugins, uploads, the rest of wp-content, and the files in the site's root folder, such as .htaccess, robots.txt and verification files. You can untick any of them, or leave out single files and folders in the root; other WordPress sites found there (a staging copy, say) are left out unless you tick them. WordPress' own files and wp-config.php are never in a backup, so restoring never touches the receiving site's WordPress or its database login. Server settings (.htaccess, .user.ini, php.ini, web.config) are put back with a site's own backups, and from another site's backup only when you tick them, because rules from another host can stop a site from loading.

Can I undo a migration?

Yes. SiteRelay saves a restore point before it changes anything, and History offers to undo the job. It keeps the newest restore points (2 by default; see Settings).

Why do I have to log in again after a pull or a restore?

When the users were copied too, this site now has the other site's accounts: log in with one of those. SiteRelay takes you to the login page and brings you back to the job.

Is my data sent anywhere else?

Not your site's data. The two sites talk to each other directly, and notifications go only to the email addresses or webhook you set. SiteRelay uses no service of its own; see External services.

Does SiteRelay download plugins, themes or other code?

Not from its author or any service. A pull or push copies the files you choose, plugins and themes included, between your own sites: only when you start it, and only with an access key the other site's administrator created for this. SiteRelay never pulls or pushes on its own; its one scheduled task tidies up, removing old history, backups past your limit and temporary files.

Does SiteRelay add files outside its own folder?

No. Everything SiteRelay keeps is in one private folder, wp-content/uploads/siterelay, removed when you delete SiteRelay:

  • exports and backups, under random names;
  • restore points: the files a pull, push or restore replaced, packed into an archive shortly after the job finishes, so the job can be undone;
  • while a job runs, the files on their way in and the ones they replace, in folders named after the job's random id.
Each folder has an index.php and rules that refuse direct access, and once a job's restore point is packed, nothing SiteRelay keeps is a file a web server could run. SiteRelay writes nothing into the mu-plugins folder or other plugins' folders; only a pull, push or restore that you start changes the site's own themes, plugins and uploads. On a site that ran an earlier build the folder is uploads/relay, and the wp-content folders siterelay-staging and siterelay-backups (or relay-staging and relay-backups) that earlier builds used can be deleted.

What does SiteRelay leave out when it copies files?

What a copy of the site doesn't need: caches, logs, the backup folders of other backup and migration plugins, WordPress' upgrade folders, an analytics plugin's location database (that plugin downloads it again), and version-control and node_modules folders. SiteRelay's own folders are never copied. To bring something back for one job, choose Custom and add a line starting with ! under Leave out, for example !uploads/iawp-geo-db.mmdb.

How do I translate SiteRelay?

On translate.wordpress.org, like any plugin in the directory. The template is also in the plugin: languages/siterelay.pot. Put the PHP translations in languages/siterelay-{locale}.mo and the screens' translations in languages/siterelay-{locale}-relay-app.json.

Coming from Relay 0.9.x?

SiteRelay is Relay's new name: the same plugin, now in the WordPress.org directory. Deactivate Relay, then install and activate SiteRelay from Plugins → Add New. Your settings, access keys, saved connections, history and backups carry over. Then delete Relay on the Plugins screen: SiteRelay keeps your data. Sites still on Relay 0.9.x can keep pulling from and pushing to SiteRelay sites in the meantime.

更新日志:

1.0.1 (2026-11-09) 1.0.0 (2026-11-09) Before 1.0.0