PSCP copy files from godaddy to my windows machine

Rajeev Roy picture Rajeev Roy · Apr 13, 2012 · Viewed 15.1k times · Source

I want to take backup of my website which is hosted on godaddy.

I used pscp command from my windows dos and try to download whole public_html folder. my command is :

pscp -r user@host:public_html/ d:\sites\;

Files are downloading properly and folders also. But the issue is public_html and other subfolders has two folder like "./" and "../". Due to these two folders my copy is getting failed and I am getting "security violation: remote host attempted to write to " a '.' or '..' path!"error.

Hope any one can help for this. Note : I have only ssh access and have to download it from ssh commands itself.

Answer

Wisco crew picture Wisco crew · Aug 2, 2013

Appending a star to the source should fix it, e.g.

pscp -r user@host:public_html/* d:\sites\;