Again, the **-n** argument detemines the number of files to transfer in one rsync call. Set according to file size and count (large for many small files).
#### Single Very Large File
#### Single Very Large File
To transfer single very large file efficienty, we need to transfer many blocks of the file in parallel, utilizing multiple cores to accelerate ssh encryption and multiple tcp streams for enhanced bandwidth.
First, set up ssh-agent single sign on as [described above][10].
Second, start the HyperQueue server and HyperQueue worker:
```console
local $hq server start &
local $hq worker start &
```
Once set up, run the hqtransfer script listed below:
```console
local $./hqtransfer mybigfile username@cluster-name.it4i.cz outputpath/outputfile
```
The hqtransfer script is listed below:
```console
#!/bin/bash
#Read input
if [ -z $1 ];then echo Usage: $0'input_file ssh_destination [output_path/output_file]';exit;fi
INFILE=$1
if [ -z $2 ];then echo Usage: $0'input_file ssh_destination [output_path/output_file]';exit;fi
Copy-paste the script into `hqtransfer` file and set executable flags:
```console
local $chmod u+x hqtransfer
```
### Data Transfer From Windows Clients
### Data Transfer From Windows Clients
On Windows, use the [WinSCP client][c] to transfer data. The [win-sshfs client][d] provides a way to mount the cluster filesystems directly as an external disc.
On Windows, use the [WinSCP client][c] to transfer data. The [win-sshfs client][d] provides a way to mount the cluster filesystems directly as an external disc.
...
@@ -300,6 +356,7 @@ Now, configure the applications proxy settings to `localhost:6000`. Use port for
...
@@ -300,6 +356,7 @@ Now, configure the applications proxy settings to `localhost:6000`. Use port for