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;
It will download all files into my droplet (NOT my local computer) and;
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.
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 runwget
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: