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
- Import / Export database with SQL Server Server Management Studio
- Where does the Media Library live in the database?
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Change site url when moving site to another url?
- Recover WordPress blog from an inactive domain name
- How to transfer changes from test environment to live site?
- WordPress Export Import Site Navigation Menu
- Export and overwrite pages on import?
- Download/View Schema (or DTD) for XML Import
- Exporting just posts of a specific category
- Migrating my existing WP site to localhost
- Issue converting single site to multi-site – blogs.dir folder not created
- Is it possible to recover featured images after WordPress export/import
- call_user_func_array() errors after migrating site with InstantWP
- Imported thumbnails have incorrect URL
- We have a static Hugo website and we want to migrate it to WordPress
- Unknown collation when I import a dump from an existing site into a development database?
- Update Attached Image Size after Import
- preventing the duplicate wp_insert_post
- Exporting and Importing WordPress Media Libraries and Galleries
- Trying to move an Expression Engine site to WordPress, but not having luck with content
- WordPress does not import all pages and post
- Moving my newly made site from subdirectory
- Clean private data (passwords, ftp, database) before zipping my site and SQL and give it to other person
- Permalinks stopped working after migration with WP all-in-one migration plugin
- Move Multiple WP Installs on a single domain to WP Multisite
- Tried to move blogs to a new server – “white screen of death”
- Blank screen after moving WordPress to new server with same domain name
- I changed my domain name and REST API stopped working
- WordPress pages creation work distribution & then combining – Localhost XAMPP
- Getting HTTP error 500 after migrating a website
- WordPress migration to new domain and environment with only zip file
- Migrating WP website from local host
- Which is the correct way to migrate content from single WP to WP multisite
- Migration problems with mysql: Operation not allowed when innodb_forced_recovery > 0 [closed]
- Transfer WordPress
- Server ip to Domain
- Migrate VB.net website to wordpress website
- Wrong URL to CSS and JS after change domain
- Existing posts hidden after WP import
- Migration from environment to master WordPress
- How to recover wordpress website moved from a PC to another
- Update around 200,000 posts
- How to make Media Library use HTTPS?
- Migration from XAMPP in windows to MAMP in Mac
- Internal server error
- Redirects and Subdirectory migration to Root Directory
- I have a WordPress 4.6 database dump – how do I use it in a new install?
- WordPress giving gibberish and wp-admin gives HTTP 500 error
- WordPress Dashboard visible but site is not after migration
- Moved wordpress dashboard still pointing to testing server
- Migrate site from WordPress multisite to another WordPress multisite
- Migrating a WordPress site has broken UTF8 encoding
- Fast way to copy a Blog x to another domain/server without deleting it
- Moving Posts to a new site and maintaining URLs
- phpBB 3 to bbPress
- ColdFusion site to WordPress?
- How do I set up a test environment in a sub-folder?
- Pages do not load after migration to new server
- wp-admin keeps forwarding me to an old url