• aslamK

    (@4slam)


    I’m importing a WXR file to migrate a wordpress.com site to a fresh site in a www.ads-software.com multisite network. The WXR file was created using the export tool to export All Content. The import is to be done in an SSH session, using WP-CLI’s wp-import command like so:

    wp import /path/to/wxrfile.xml --authors=/path/to/mappings.csv --url=https://site.example.com --debug >> /path/to/import.log 2>&1

    If wp-import quits (e.g., due to insufficient resources) before all the items in the WXR file are processed, will a subsequent run (after adjusting the resource limits) skip the items processed in the previous run and still maintain the intra-site relationships of all the content and its metadata as represented in the WXR file?

    IOW, if I want to replicate the site content in the WXR file, should I delete the content imported in the incomplete run of wp-import before I run it again?

Viewing 1 replies (of 1 total)
  • threadi

    (@threadi)

    The importer checks whether the objects to be imported already exist. My recommendation would be to test this with a small test file with 2-3 entries. Create this manually (possibly from the first 2-3 entries of the actual target file), import it once, then change a few words in the file and import it again. You should see on the console that the importer has found and updated the data instead of importing it again.

Viewing 1 replies (of 1 total)
  • The topic ‘Importing large WXR when migrating from wordpress.com’ is closed to new replies.