Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to send a folder from my Windows to a Linux virtual machine, using PSCP. I mention again that I want to transfer a folder which contains nearly 200 files in it.

share|improve this question
add comment

1 Answer 1

pscp on Windows much like scp on Linux has an option '-r' to copy entire directories recursively.

From the manual

5.2.2.4 -r copies directories recursively

By default, PSCP will only copy files. Any directories you specify to copy will be skipped, as will their contents. The -r option tells PSCP to descend into any directories you specify, and to copy them and their contents. This allows you to use PSCP to transfer whole directory structures between machines.

If you're on a system that doesn't support the -r option (certain compiles of Busybox for instance), the common way would be to create a tarball or zip file of the folder in question.

share|improve this answer
    
As a side note, if you will be copying the same folder regularly (e.g. uploading a Website from your Windows Desktop to your Linux Server) I would suggest using rsync over ssh as on subsequent copies it only transfers files that changed since the last copy and not the entire directory again. –  Lukas Loesche Nov 16 '12 at 9:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.