Using PSCP command for copying files and directories

Posted on 23-11-2017 by Nadir Latif


Source: https://serverfault.com/questions/295565/pscp-upload-an-entire-folder-windows-to-linux

PSCP is a command that allows uploading files and folders to a remote server. Its benefit is that it does not require rsync to be installed on the remote server. The PSCP command can be used for example for copying data to a shared hosting platform which does not support rsync and does not provide shell access. It can also be used to transfer data between Windows and Linux servers.

The following command can be used to recursively copy a folder to a remote destination:

pscp -r {source_folder} {user_name}@{remote_server}:{remote_folder_path}