I need to download all files from a FTP server but the server has a lookup limitation on 10,000 which complicates things.
I can't use wget -m ftp://username:password@server-adress
since it will only download the first 10,000 files. I can use mget
like mget 20[12]*
, mget 20[34]*
etc. but it is cumbersome AND some downloads fails without me knowing which ones.
Now I have come across lftp
. I was getting my hopes up for this command
mirror --use-pget=10 --only-missing --no-symlinks
But it doesn't download anything, it just outputs
To be removed: 0 directories, 70695 files, 0 symlinks
Now I am clueless how to actually download all files from a FTP server with a limit
EDIT
Now I went ahead and created a script that produces a missing.txt
with a list of files that I still need to download. How can I use that file to download the files one by one? The list is \n
delimited.