In addition, you can import attachment by checking the “Download and import file attachments” option.
(source)
This means, if you use the official WordPress Importer plugin, it will read the media URL from the file, download that file and finally upload it to your new install.
When your old site is offline, eg. taken offline after malware infection, you won’t be able to import any media files this way.
If you have backups, you can try to play that in (media related db tables + wp-content/uploads/ folder). But you’ll need to take very close looks, as not to back up the previous infection as well.
Related Posts:
- What is the difference between wp-admin>Export>All content and MySql dump and import
- How do you do your big exports / imports?
- Migrating WP site to another URL
- Plugins to clone wordpress site and move to another url
- How to migrate a WordPress installation from one site to another, including all images?
- How can I export WordPress posts’ attachments?
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- Copy site from one multisite to another
- Importing New Posts from Live Site into Local Dev Site
- Why isn’t my imported database showing up? install.php pops up and adds new tables to the database
- Install WordPress on new server or just copy old files?
- How can I migrate (export and import) wordpress users without loosing their password?
- Tags not importing when using WordPress import system
- Create a clone from one WordPress site to another in a few minutes
- How do I fully migrate post images from one WordPress site to another?
- How do I migrate blog post images from one domain to a new one?
- Merging two databases without borking it
- Export + Import = wrongly duplicated content
- Problems with WordPress Import
- how to migrate wpmu from one host to the other?
- Uncaught Error: Class ‘Redis’ errors on a site I’ve transfered to new hosting
- How to remove symlink from folder
- When moving a WordPress installation to a new server, why do I have to update each post before content shows?
- product export and import using xml
- Export WordPress from one domain to another domain
- FTP not working on a specific WordPress site but working on others (and Filezilla) [closed]
- Import from Windows to Linux
- Syncing WP Database Changes Between Environments: How To Handle Merging w/o touching database
- Migrate site from local to local via a backup
- How to duplicate a website?
- What happens if I replace the files of a WordPress site with another WordPress site?
- Moving WordPress site from local PC to local Mac
- How to replace a wordpress installation in root directory with another in a subdirectory?
- Is it possible to get an exported WP site in a zipped folder up and running? [closed]
- Migrate bbpress content to posts
- Clone wordpress blog on localbox manually
- Can’t restore my wordpress site from zip back up file
- Change a web programmed in ASP.net to WordPress from scratch in the same Hosting
- Does WordPress import export tool keeps the file hosted on the old website?
- How to add Featured Image on WXR from External Conversion
- What’s your process for installing a brand new site when there is already an existing one?
- “Failed to import” error . How i fix it
- Site is not fully working after migration
- How can i convert my Delphi.NET project to Delphi Prism?
- Import / Export database with SQL Server Server Management Studio
- Remove Project from Android Studio
- Where does the Media Library live in the database?
- Failed to import Media
- Moved WordPress to New Server, Now Tries to Download a File
- How to migrate subsite from dev multisite to production multisite
- Do you have any effective strategies for launching a v2 of a WP site?
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- Migrating Markdown (from Drupal)
- Change site url when moving site to another url?
- WordPress Theme Options Import/Export
- Export navigation menu
- One Click demo content installation feature in WordPress theme options panel
- Migration issue – blog home page is blank
- Best way to import users, post and categories from an external database
- Recover WordPress blog from an inactive domain name
- Broken CSS after changing the site URL
- Import and replace existing page/post content
- Is it possible just by using wp-cli to migrate one multisite instance to single site?
- Export WP database for import using WP-CLI on Vagrant Box
- Most Flawless Way To Transfer from Dev to Prod [duplicate]
- Problem: Create a cron job to export posts to a WordPress XML file on server
- Make WordPress “readonly” on a given site
- Is there an easy way to migrate a site from SiteFinity to WordPress?
- How to transfer changes from test environment to live site?
- Migrate Changes from a Staging Site to Production
- References to other site everywhere in WordPress site
- Import old SQL dump into new WordPress version
- Change old URLs after the domain change
- After moving wordpress some files still point to old directory
- WordPress Export Import Site Navigation Menu
- How to completely export and import WordPress?
- Import and export links from WordPress.com to private site
- 500 Internal Server Error after attempting to switch from subdirectory to addon domain
- Export and overwrite pages on import?
- problem migrating files from https to http mock site – how to see mock site
- How to upload local changes to a live server without overriding new posts/pages?
- URLs to images get messed up after migration
- How can I assign post a specific ID on creation?
- Migrate localhost to server
- Download/View Schema (or DTD) for XML Import
- Exporting just posts of a specific category
- What’s a better workflow for database migration?
- Moving WordPress from live to local server
- GUID not updated on import
- Error establishing a database connection After Copy localhost wordpress site (with site url directly to hosting server’s url before copy)
- How can I export and then import posts with featured images?
- How to migrate from wordpress.com to self-hosted wordpress
- Links after moving my site to another domain
- Migrating my existing WP site to localhost
- Suggestions for WPMU Migration (advanced)
- Import Images from one self-hosted WordPress install to another
- Will post id change when migrating to new site?
- How to just migrate posts/pages from one site to another?
- Issue converting single site to multi-site – blogs.dir folder not created