scpIs it possible to SCP files in parallel?
Yes, it is possible to SCP files in parallel. This can be done using the scp
command in Linux. The -P
flag can be used to specify the port number, and the -l
flag can be used to specify the number of parallel transfers.
Example code
scp -P <port_number> -l <number_of_parallel_transfers> <source_file> <destination_file>
Code explanation
scp
: The command used to transfer files over a secure connection.-P
: The flag used to specify the port number.-l
: The flag used to specify the number of parallel transfers.<port_number>
: The port number used for the connection.<number_of_parallel_transfers>
: The number of parallel transfers to be used.<source_file>
: The file to be transferred.<destination_file>
: The destination file.
Helpful links
More of Scp
- How to show progress when using SCP?
- How to transfer files using wildcards with SCP?
- Running SCP in quiet mode
- How to transfer files recursively using SCP?
- How to overwrite files using SCP?
- How to automatically create destination directory when using SCP?
- How to enable logging when using SCP?
- How to SCP to multiple hosts?
- How to SCP from a remote to a local machine?
- How to catch errors when using SCP?
See more codes...