Question

Downloads Files from a Website Straight to My Droplet

I want to download all pdf files from a domain straight into my droplet.

I can use wget for this, but is there a way so that it doesn’t use my local wifi connection because it is quite unreliable and disconnects too often (student accommodation wi-fi).

Shortly;

I want to utilise wget command in my droplet (this may not be the right term for it, I’m newbie) so that;

  1. It will download all files into my droplet (NOT my local computer) and;

  2. It will continue to download even if I turn off my computer


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi!

wget is definitely one of the tools that can be used for this, so you’re on the right track :) Once you’ve logged in to your Droplet via SSH, you can simply run wget as you normally would to download files to your Droplet.

If it’s easier for you, you can create a text file with the links listed line by line and use wget to download them all at once by running wget -i /path/to/links.txt

screen is a wonderful tool that lets you run sessions on your Droplet that are kept running even after you log out. Take a look at this tutorial that explains how screen works and how to use it: