...
On a login node, load python3
Code Block |
---|
module load python3globus |
Login to Globus
Code Block |
---|
[marka@talapas-ln1marka@login1 ~]$ globus login Please authenticate with Globus here: ------------------------------------ https://auth.globus.org/v2/oauth2/authorize?client_id=b6d480cb-fb69-486b-84e5-c46d22554d6b&redirect_uri=https%3A%2F%2Fauth.globus.org%2Fv2%2Fweb%2Fauth-code&scope=openid+profile+email+urn%3Aglobus%3Aauth%3Ascope%3Aauth.globus.org%3Aview_identity_set+urn%3Aglobus%3Aauth%3Ascope%3Atransfer.api.globus.org%3Aall&state=_default&response_type=code&access_type=offline&prompt=login ------------------------------------ Enter the resulting Authorization Code here: <xxxxxxxxxxxxxxxxxx> You have successfully logged in to the Globus CLI! You can check your primary identity with globus whoami For information on which of your identities are in session use globus session show Logout of the Globus CLI with globus logout |
Discover the source endpoint share ID. This is my globus share on Talapas
Code Block |
---|
[marka@talapas-ln1marka@login1 ~]$ globus endpoint search 'Talapas' ID | Owner | Display Name ------------------------------------ | ----------------- | ---------------- ... adc038d8-0fcb-11ea-8a67-0e35e66293c2 | marka@uoregon.edu | Talapas_marka ... |
Discover the destination endpoint ID. This is the UO - Information Services endpoint top level share. (This endpoint has since been deprecated but the process is the same for other endpoints)
Code Block |
---|
[marka@talapas-ln1marka@login1 marka_globusEP]$ globus endpoint search 'UO - Information Services' ID | Owner | Display Name ------------------------------------ | -------------------- | ------------------------- 8fcb5320-1b71-11e9-9f9f-0a06afd4a22e | uoregon@globusid.org | UO - Information Services |
Create variables for each endpoint ID for ease of use and list the contents of each. ep1 is Talapas and ep2 is UO - Information Services
Code Block |
---|
[marka@talapas-ln1marka@login1 ~]$ ep1=adc038d8-0fcb-11ea-8a67-0e35e66293c2 [marka@talapas-ln1marka@login1 ~]$ ep2=8fcb5320-1b71-11e9-9f9f-0a06afd4a22e [marka@talapas-ln1marka@login1 ~]$ globus ls $ep1 mk_script_for_Talapas.R [marka@talapas-ln1marka@login1 ~]$ globus ls $ep2 testu/ testf |
...
Initiate a single file transfer from the Globus CLI
Code Block |
---|
[marka@talapas-ln1marka@login1 ~]$ globus transfer $ep1:/mk_script_for_Talapas.R $ep2:/globus/marka/mk_script_for_Talapas.R Message: The transfer has been accepted and a task has been created and queued for execution Task ID: b3ad3038-109e-11ea-bea0-02fcc9cdd752 |
...
New contents of the destination endpoint showing the new file, mk_script_for_Talapas.R.
Code Block |
---|
[marka@talapas-ln1marka@login1 ~]$ globus ls $ep2 testu/ mk_script_for_Talapas.R testf |
...
Info |
---|
Look into the globus transfer reference page for information on the command line options available, https://docs.globus.org/cli/reference/transfer/ In particular ‘--sync-level’, ‘--recursive’ |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||
---|---|---|
| ||
Related issues |