How to download the WordPress media library

How to download the WordPress media library

This article will explain how to download photos from your WordPress media library ,and then how to safely backup those files.

While it is possible to go through each image, copy, save and then arrange the files, this is very time-consuming especially if you have scores of files to export.

Thankfully there is a more efficient way to download the media library from WordPress. There are two ways to achieve this:

  • From your computer with an FTP client
  • From the file manager in the control panel of your hosting service

This can take a long time, depending on the server and your Internet strength. The number of files in your media library will also play a part, which can have an effect on how your site performs while the process runs.

Learn below more about this topic in this article created by our team at wpDataTables.

Why Would You Download The Media Library?

There are many situations in which downloading your WordPress media library would be useful, such as you’re creating a brand-new website and want to move your files across.

It is important to create a backup in case anything goes wrong on the site.

The security of your website should be paramount and backing up your site means you will  have a fallback plan if anything goes wrong. For example, someone may attempt to hack into your site, causing your data to be lost because of the unauthorized access. If that happens, all of your important files will be in your backup.

You may want to put your images on another site, because the transition will be smoother with those photos already backed up.

Use cPanel  File Manager

Using the host control panel is one of the safest methods downloading your WordPress media library. This approach will eliminate the need for external methods such as FTP clients, or a WordPress media library plugin.

cPanel offers many tools to edit your WordPress site. Its key feature is File Manager, which lets you edit and manage your site files and you can compress and download the media library to a source of your choice.

You can gain control of the online root directory and use it from the browser of your choice which eliminates the need for FTP or other programs.

It saves space on your computer by compressing all files, pictures, and documents into a ZIP file. This is much faster than downloading each one individually.

One potential dilemma is that not every host provider uses cPanel and its features can vary, depending on your hosting plan.

How to use cPanel to download your WordPress media library:

  • Go to cPanel and click ‘File Manager’
  • Head to ‘public _html’ to go to your site director
  • Head to ‘wp-content’ by double-clicking

  • Go to the folder called ‘Uploads’ and hit ‘Compress’
  • Hit ‘Zip Archive’

You can keep the name of the ZIP file as the default name, which is called ‘uploads.zip’ under the wp-content folder.

You can rename it, but this guide will use ‘uploads.zip’

  • Choose ‘Compress File(s)’
  • This will take you to a page of compression results

  • Hit ‘close’
  • Choose the zip file and click the download button

This will open up the usual download screen,allowing you to choose where to save it on your computer. Some computers automatically save files in ‘Downloads’.

If you want to download selected files only, this uses a different process:

  • Go to ‘Uploads’
  • Choose the folder
  • Click the file you want and click ‘Download’
  • You can choose more than one file

Use FTP to Download Your Media Library

Your next option is to use the FTP method, which requires you to download an FTP client. However, you don’t need to use a WordPress media library plugin. This is a good option when your host account does not provide cPanel.

FTP is the acronym of file transfer protocol. This method allows you to transfer files to and from your computer and your site. It’s the perfect option for getting the images from your website to your computer.

Finding images on the server:

Connect to the server with FTP. Then search for your images to download them.

You can find your media library here:

wordpress/wp-content/uploads/

Instead of ‘wordpress’, this folder might additionally be called ‘public_html’.

Everytime you upload images on WordPress, a folder is created, which is named after the year unless there’s already a file for the same year. Files named after months are added inside. This system helps find files  uploaded at a certain time.

There are some FTP clients that are free, including:

For all platforms: FileZilla

For Windows: WinSCP

For Mac: Cyberduck

Follow these steps to access your files:

  • On the dashboard’s files section click ‘FTP Accounts’
  • Sign up for an FTP account. Save the access information
  • On your computer, open the FTP client. Fill in any fields required to acquire your site data

  • Once you’ve logged in, go to the wp-content folder
  • Select uploads, press ‘Download’ and click ‘ok’

These steps will download all your files onto your computer. If you don’t need all the files, go to uploads in FTP and click specific files; allowing you to save space on your computer.

After you click ‘Download’, the process may take some time, especially if you are downloading all the media files.  This method is straightforward, and there is no need for software or plugins other than the FTP client.

Since WordPress has many different sized versions of your images; you  will be downloading more files than expected.

Scaled pictures feature the dimensions in their filenames. E.g., image.png might have a different size called image-200×200.png.

Protect Your Pictures

Once you have correctly downloaded your WordPress media library you will have a backup of your documents and images. You can easily move them to a new server. Also keeping your files accessible can preserve them safely and securely if you suffer from a virus or hacking.

If you enjoyed reading this article on how to download the WordPress media library, you should check out this one about how to change fonts in WordPress.

We also wrote about a few related subjects like how to find the page ID in WordPress, how to embed a WordPress iframe, how to eliminate render-blocking JavaScript and CSS in above-the-fold content, how to stop a DDoS attack and how to hide page title in WordPress.

Up Next:

How to optimize CSS delivery in WordPress with little hassle

How to optimize CSS delivery in WordPress with little hassle