Transfer Data with iRODS
CyVerse provides a cloud-based data store accessible via iRODS, allowing researchers to manage and transfer large datasets. From RCAC clusters (Negishi, Bell, Anvil), you can authenticate with your CyVerse account and use iCommands to list, upload, or download files efficiently.
Note
If you don't have a CyVerse account, you can sign up for a free account at CyVerse User Registration.
Setting up iRODS access to CyVerse¶
-
Load the necessary modules
-
Initialize your iRODS session
You will be prompted to enter the following:
Enter your CyVerse password when prompted. The password is not displayed (you won't see
*or.either). If successful, this creates or updates a configuration file (usually at~/.irods/irods_environment.json), enabling seamless use of other iCommands. -
Verify your iRODS connection
This should return a path like:
If these commands work and return expected output, your connection to CyVerse is successful and you're ready to transfer files.
Transferring files between RCAC clusters and CyVerse¶
Once connected, you can use iRODS commands to move files between your RCAC environment (e.g., Anvil) and CyVerse Data Store. Below are the most common operations:
List files and directories in your Data Store¶
You should see a listing of your CyVerse files and folders. Example output:
Upload a file from RCAC to CyVerse¶
This command uploads the local file results.txt to your CyVerse home directory.
Upload a directory (recursively)¶
The -r flag allows you to upload entire directories.
Download a file from CyVerse to RCAC¶
This downloads the file into your current working directory on the cluster.
Download a directory (recursively)¶
This downloads an entire directory and its contents.
Create a new directory (collection) in CyVerse¶
Organize your files by creating collections before uploading.
Rename or move files within CyVerse¶
This renames old.txt to archived.txt in place.
Delete files or directories from CyVerse¶
Use -r to delete directories. These operations are permanent unless your account uses trash recovery.
Commonly used iRODS commands¶
| Command | Description | Example Usage |
|---|---|---|
iinit |
Authenticate and start an iRODS session | iinit (follow prompts: hostname = data.cyverse.org, port = 1247, etc.) |
ils |
List current files and directories | ils / ils /iplant/home/your_username |
ipwd |
Show current iRODS working directory | ipwd |
icd |
Change directory (collection) in iRODS | icd /iplant/home/your_username/project1 |
iget |
Download a file or directory from iRODS to local system | iget data.txt / iget -r project_folder |
iput |
Upload a file or directory from local system to iRODS | iput results.txt /iplant/home/your_username/ / iput -r output_dir |
imkdir |
Create a new directory (collection) in iRODS | imkdir /iplant/home/your_username/new_project |
irm |
Delete files or directories from iRODS | irm old.txt / irm -r old_project |
imv |
Move or rename files/directories within iRODS | imv oldname.txt newname.txt / imv old_dir/ new_dir/ |
icp |
Copy a file or directory within iRODS | icp file1.txt file2.txt / icp -r project1/ project2/ |
ichksum |
Compute or verify file checksums | ichksum results.txt |
ienv |
Display current iRODS session environment | ienv |
ihelp |
Show list of available iCommands | ihelp |
iexit |
Log out and clear iRODS session | iexit full |