Docs: Export

Export

Take your content and files with you: a full archive, a WordPress file and a redirect map, with who may export and how long files are kept.

Since 1.21.0 System ▸ Export lets you take your content and files with you. It is part of the Importer module, which the panel now calls Migrate and which stays off until you switch it on (see The importer). No API or machine reaches the Export.

Who may export #

Two permissions: Export this site's content and files, and Include members' personal data in an export, which members' data also needs. Every start asks you to confirm it is you. A run is written in several short steps and can be resumed: keep the page open while it runs, or come back to it. One export runs at a time, and Stop deletes the files made so far.

What one export makes #

Up to three files:

  • The full archive is a ZIP with every section as JSON, the media files, and a README that describes the format.
  • The WordPress file is a WXR file for WordPress's own importer, with pages, posts and comments, the Blog's categories and tags, and one author for each account that wrote an item. It leaves out menus, media files, translations, Layouts, settings and Forums.
  • The redirect map lists every old address and where it moves to, as a .csv and as an Apache .htaccess file. You give it the address the new site answers at and the address style for pages, posts, categories and media.

Drafts are included only if you switch them on. Only the sections the person who started the export may read are written, and a section whose module is off is listed as left out. Each archive ends with a manifest of what is in it and what was left out and why.

Members' data #

Members' personal data goes in only with its own switch and permission, checked again at every step. Passwords, sign-in codes and IP addresses never go in. Without the switch, no account id leaves the site. Downloading an export that holds members' data asks you to confirm it is you again. If the person who started it loses the permission, or a member held in the export is deleted, the run stops and its files are deleted. Deleting any account, the sweep of unconfirmed accounts included, does the same to a running members export and to finished ones, so start it again. If the account-deletion step itself fails, that member's data stays in members exports until they expire, at most 168 hours.

How long files are kept #

  • Finished files are deleted after Keep files, in hours, 24 by default, from 1 to 168 (seven days). You can also delete them at once. An hourly job removes expired files.
  • Switching the Importer module off deletes every export's files at once and stops a run in hand; uninstalling it deletes them too, with or without keeping its data. A run switched off this way stays in the list with its files gone.
  • Export files are never put in the off-site backup, so members' data does not outlive its hours there.

A size limit #

The export keeps a list of every file in memory, about 0.9 KiB for each file. About 130,000 media files reach a 128 MiB PHP memory limit. A site with more files than that needs a higher memory limit (memory_limit) before it exports the full archive. A person without the members-export permission can learn that a run exists and holds members' data, and nothing more.