WordPress includes a nifty tool to help you export all of your site content, including posts, pages, custom post types, WooCommerce data and images to a single file you can import to another site or use to restore your site content without affecting your files or WordPress installation as you would with a full site restore.
You should backup your site content periodically, and always when your site is first launched or prior to a theme update.
Backup Content to XML
The WordPress exporter will create a file for you containing the content selected during the export process, such as posts, pages, categories and attached media. This file can be used to import all of this content, including the media library, in the event you lose your database or need to import it on a different WordPress install.
- Click on Tools→ Export
- Click the WordPress link.
- If prompted, follow the steps to install and activate the WordPress Importer plugin
Import XML data
The following process is the same for importing theme demo content XML files or WooCommerce dummy data on your new site. View Steps