# How do you transfer data to Lewis using rsync?

**URL:** <https://ask.cyberinfrastructure.org/t/how-do-you-transfer-data-to-lewis-using-rsync/1372>\
**Category:** University of Missouri - Columbia\
**Created:** [May 18, 2020, 6:35pm UTC](https://ask.cyberinfrastructure.org/t/how-do-you-transfer-data-to-lewis-using-rsync/1372 "2020-05-18T18:35:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjmfg8](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@bjmfg8](https://ask.cyberinfrastructure.org/u/bjmfg8)\
**Post date:** [May 18, 2020, 6:35pm UTC](https://ask.cyberinfrastructure.org/t/how-do-you-transfer-data-to-lewis-using-rsync/1372/1 "2020-05-18T18:35:35Z")

</div>

# Rsync

## Transfer Your Data to the Cluster

We recommend that you use the `rsync` command with these options for the best results:

```bash
rsync -rltvPh /source/path <username>@lewis.rnet.missouri.edu:/storage/hpc/data/<username>/destination/path

```

> Note: You should run this command from a terminal where the files originate  
> and not from the Lewis login node.

Here are what the various flags mean:

- `-r`: recursive
- `-l`: links
- `-t`: time
- `-v`: verbose
- `-P`: progress
- `-h`: human readable

Example:

```bash
[2016-09-27 16:06.54] ~
[DOIT-TCB-JG] ➤ rsync -rltvPh /home/mobaxterm/science_data/ testuser@lewis.rnet.missouri.edu:/storage/hpc/data/testuser/
sending incremental file list
./
file1
          31 100% 0.00kB/s 0:00:00 (xfer#1, to-check=2/4)
file2
          23 100% 22.46kB/s 0:00:00 (xfer#2, to-check=1/4)
file3
          19 100% 9.28kB/s 0:00:00 (xfer#3, to-check=0/4)

sent 292 bytes received 72 bytes 242.67 bytes/sec
total size is 73 speedup is 0.20

```
