How to transfer data between Latch Data and Pods
To transfer data between Latch Data and Pods, you can use thelatch cp
command.
From Latch Data to Pods
First, select the file on Latch Data that you want to copy. After selecting, you will see a file path displayed on the sidebar. Copy the path.

Important: When copying from Latch Data, make sure that you prefix the
file or folder path with latch://. The prefix tells the Latch CLI that the
source destination of the file is on Latch. Without the prefix, Latch will
assume that the source file is on your Pod, and you may get a “File not found”
error.
From Pods to Latch Data
To transfer data from your Pod to Latch, you can typeHow to transfer data between Pods and Your Local Computer
Using the UI
From Pod to Local ComputerUsing the Jupyter Lab or RStudio UI, only files can be directly exported from
Pod. If you have a folder, you have to first zip it before exporting.
If you are planning to download a folder, see how to compress it by opening the toggle here.
If you are planning to download a folder, see how to compress it by opening the toggle here.
To download data in Jupyter Lab, simply right-click on the file or compressed folder you can to export, and click Download.
In RStudio, you can toggle the file or compressed folder you want to export. Then, click More and choose Export.
Let’s now create a tar.gz archive, which will compress your folder into a smaller .gz file that will be ready to download.To compress your folder, type the commandYou will soon see a new file called


myfirstarchive.tar.gz
in your filesystem! Now, your compressed folder is ready to be downloaded.
Currently, only files can be uploaded directly using the UI. If you have a
folder, you must compress it first before uploading.

Using the CLI
Latch Data serves as the intermediary for data transfer when moving data between Pod and your local computer. For example, to copy data from local to Pod, you can use latch cp to first copy data from local to Latch Data, and use latch cp again to copy data from Latch Data to Pods. Similarly, you can use latch cp to first copy data from Pod to Latch Data, and use latch cp to copy data from Latch Data to your local computer.Using SFTP Since Latch Pod is a remote server that allows for SSH access, you can use SFTP to connect and securely transfer data between your local computer and Pod. First, let’s test the SSH command. Click on the Pod you want to access, and copy the SSH end point on the right sidebar.
