The fastest way to download whole page

The fastest way to get whole page or FTP directory contents is to use wget like this:

[code language=”shell”]
wget -r "ftp://dylon.co.cc/Shaun The Sheep (high res) – Series 1 and 2/"
[/code]

However, this may not work always, if destination is secured by password or requires login.

In this situation you may consider rsync…

…like this:

[code language=”shell”]
/usr/bin/rsync –archive –delete –whole-file –verbose –human-readable –cvs-exclude
–log-file=/share/Qsys/maciek.log "anonymous@dylon.co.cc:/Shaun The Sheep (high res) –
Series 1 and 2/" /share/Qsys/maciek
[/code]

But keep in mind that either I messed up something in above or this does not work for anonymous logins. Even if server allows this kind of users, rsync always asks for the password and fails to accept it, when it is empty or when you provide e-mail address (usually required for anonymous users).

I had to use first method to get whole directory on FTP server, where I was told to use anonymous users.

Leave a Reply