File Transfers
===========================
Copy Files with SCP
*********************
Use the ``scp`` command to copy files or directories to Rockfish:
.. code-block:: console
scp -r
@rfdtn1.rockfish.jhu.edu:/scratch16///
Synchronize with Rsync
************************
Use ``rsync`` for efficient file syncing:
.. code-block:: console
rsync -rav ~/data @rfdtn1.rockfish.jhu.edu:~/data/
rsync -rav --delete --exclude-from=~/exclude.txt ~/data @rfdtn1.rockfish.jhu.edu:~/data/
.. note::
- ``--delete`` removes files not present in the source
- ``--exclude-from`` uses a file to skip listed files
Data Transfer with Globus
*************************
The recommended method for transferring large data files to and from the Rockfish cluster is to use `Globus `_. Globus manages transfers reliably in the background, handling restarts if interruptions occur.
1. Connect to Globus
**************************
Use your browser to visit: https://www.globus.org
.. image:: ../../../images/rf-globus-1.png
:width: 400
:alt: Globus Login
2. Search for Johns Hopkins
***************************
Search and select **“Johns Hopkins”** as your institution.
.. image:: ../../../images/rf-globus-2.png
:width: 400
3. Log in with JHED ID
**************************
Use your JHED ID to log in through the Johns Hopkins SSO portal.
.. image:: ../../../images/rf-globus-3.png
:width: 400
4. Search for the Rockfish Collection
**************************************
After logging in, search for the collection **“rockfish”** in the Collection Search screen. Click on **“Rockfish User Data”** when it appears.
.. image:: ../../../images/rf-globus-4.png
:width: 400
5. Authenticate Access
**************************
You'll be prompted to authenticate with the “Rockfish User Data” collection. This is required on first access or after removing the collection.
Click **“Continue”**.
.. image:: ../../../images/rf-globus-5.png
:width: 400
6. Select Your JHED Identity
******************************
Choose your JHED ID from the list of available identities.
.. image:: ../../../images/rf-globus-6.png
:width: 400
7. Allow Access to the Globus Web App
**************************************
Scroll to the bottom and click **“Allow”** to authorize access.
.. image:: ../../../images/rf-globus-7.png
:width: 400
8. Rockfish Endpoint
**************************
Once authorized, you will see the Rockfish endpoint connected (your HOME directory).
.. image:: ../../../images/rf-globus-8.png
:width: 400
9. Choose a Second Endpoint
***************************
On the other side of the interface, select a second endpoint. This could be:
- A Globus Connect Personal instance (e.g., your laptop)
- An HPC system like Bridges2
.. image:: ../../../images/rf-globus-9.png
:width: 400
10. Authentication for Second Endpoint (if needed)
**************************************************
You may be asked to authenticate to the second system. If using your own Globus Connect Personal setup, you might not need additional authentication.
11. File Manager View
**************************
You’ll now see a **split-pane interface**. The left side shows your Rockfish files. The right side shows your selected endpoint.
.. image:: ../../../images/rf-globus-11.png
:width: 400
12. Start File Transfer
**************************
To transfer files:
- Select the folder or files (e.g., "OMP-src") on one side.
- Click **“Start”** to begin the transfer.
You can also open **“Transfer & Sync Options”** to configure behavior like sync mode or overwrite rules.
.. image:: ../../../images/rf-globus-12.png
:width: 400