Transfer files with runpodctl
The RunPod CLI provides simple commands for transferring data between Pods, or between your local machine and a Pod. It uses one-time codes for secure authentication, so no API keys are required.
Send a file
To send a file from the source machine (i.e. a Pod you've deployed or your local machine), run this command, replacing YOUR_FILE
with the file you want to send:
runpodctl send [YOUR_FILE]
You should see output similar to this:
Sending '[YOUR_FILE]' (5 B)
Code is: 8338-galileo-collect-fidel
On the other computer run
runpodctl receive 8338-galileo-collect-fidel
8338-galileo-collect-fidel
is the one-time code that you would use on the destination machine (your code will be different).
Receive a file
Run the command outputted by the send command on the destination machine to receive a file, for example:
runpodctl receive 8338-galileo-collect-fidel
You should see output similar to this:
Receiving '[YOUR_FILE]' (5 B)
Receiving (<-149.36.0.243:8692)
data.txt 100% |████████████████████| ( 5/ 5B, 0.040 kB/s)
Transfer files between Google Drive and RunPod
You can also transfer files between a Pod and Google Drive using Google Colab: