How to download recursively with ftp library?

How to bulk download files of one type from the WordPress Media Library?

  • Is there a quick (or a quicker) way to download all files of a given type from the Media Library of a self-hosted WordPress site? The site in question has about 200 MP3s. I can easily sort out the MP3s by selecting "Audio." But how can I download them all at once? Is there a plug-in? FTP looks like a big pain, too, as these files are organized in folders by year and month, and there are several years here -- and many months with no uploads at all.

  • Answer:

    If your "uploads" folder isn't too ginormous, you could just download the entire directory, then run a local search on *.mp3 files and sort them that way.

houseofdanie at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

I have used the firefox plugin https://addons.mozilla.org/en-US/firefox/addon/downthemall/ for similar tasks.

phil

http://en.wikipedia.org/wiki/HTTrack or another web crawler program can probably be rigged to only save URLs ending in ".mp3".

XMLicious

Are you comfortable with the command-line? You can use http://lftp.yar.ru/ in "mirror mode" to download entire directories, and use the --include option so it only looks for .mp3 files and not others.

vasi

I guess I'm kind of an idiot. I have a MacBook Pro and haven't seen a command line for more than seconds at a time in many years. :P I just downloaded HTTrack, which seemed like a fantastic idea til my eyes got SUPER BIG at instructions like, "First, you'll need to install Apple Developer Tools," followed by all this... stuff... to type into a command line. I think it wants me to play some Missile Command. Ooh, on preview, a new plug-in to look at!

houseofdanie

Wow, yeah, looking at those instructions for the Mac it does look horrendously complicated. Sorry about that, I've only used it on Windows and Linux where the installation is much more straightforward. Here's the http://en.wikipedia.org/wiki/Category:Free_web_crawlers for free web crawlers if you want to try to find one that's more Mac-friendly.

XMLicious

Honestly download Filezilla or Cyber Duck and take 5 minutes to figure out the correct way to do this. It's not that hard. If you can use Finder you can FTP.

humboldt32

I was about to use my FTP client to take the whole uploads directory, then search for just the MP3s and put them in their own folder, a la colorproof's suggestion. Humboldt32 clued me in to the fact that I'm able to search files on the server. AHA. Thank you. I'm not entirely sure why WP doesn't have a way to batch download anything, but you all made my evening much more pleasant.

houseofdanie

Ha! I feel like an idiot, because I forgot you can search via FTP as humboldt32 suggested. I use http://panic.com/transmit/ and it works really well.

colorproof

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.