When I need download some large files from other countries, I often download them onto a VPS in USA, and then download them from there to my home, since it is too slow to download directly from my country.
The link from VPS to my home is slow, so that I use multi-threads downloading tool such as Axel when I am fetching the files from VPS to my home. But Axel will modify the timestamp of files, I can not preserve the original timestamp same as the web server hosting files.
For example: I use Wget to download a ISO from ubuntu.com to my VPS in USA. On the VPS, the timestamp is same as the original. I know that SCP command also can carry the timestamp of the source files with option "-p", but scp is slower than axel. I want to use axel download the content of files.
Is there a way, in it we can fix the timestamp after we downloaded files? Just only copy the timestamp of files as if they was downloaded with "scp -p " or wget.
thanks!
rsync
, it is the correct tool for this job. However, it may not always be easy to use it. If you want, you can use Wget2, the next version of Wget for your usecase. It is almost ready and supports threaded downloads.