Downloads Files from a Website Straight to My Droplet

Posted January 29, 2018 3.2k views
DigitalOceanVPNUbuntu 16.04

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).


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

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.

Submit an Answer
1 answer


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:

by Justin Ellingwood
In this article, we will discuss how to install and use "screen", a tool that allows you to manage multiple shell sessions inside a single terminal. The screen program is very useful for multi-tasking in an ssh environment, due to its ability to resume terminal sessions and perform multiple-concurrent tasks.