开发者

Need to copy remotely hosted file via Shell Command

开发者 https://www.devze.com 2022-12-25 03:29 出处:网络
There is a file that hosted remotely on a server that is not supporting Shell Access. I bought a new server that supports Shell Access so n开发者_开发问答ow I want to copy a file that is on the non-su

There is a file that hosted remotely on a server that is not supporting Shell Access. I bought a new server that supports Shell Access so n开发者_开发问答ow I want to copy a file that is on the non-supporting server to new server via a Shell Command using Putty.

The file URL is like this http://www.domain.com/file.gzip and it is username/password protected.

To be more specific, I want to copy a backup of a home directory from cPanel to my new server via Shell command. I have done this few months ago but I don't remember it now and also I failed to Google it.


why dont you use wget ? so you can download your files to your new server.?

$ wget --user='userhere' --password='myPassword' http://youroldhost/backup.zip

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号