Difference between revisions of "Syncing to Archival Storage"

From CAC Documentation wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
* If the source directory is not located on an existing Globus endpoint, install Globus Connect Personal for [https://docs.globus.org/how-to/globus-connect-personal-linux/ Linux], [https://docs.globus.org/how-to/globus-connect-personal-mac/ MacOS], or [https://docs.globus.org/how-to/globus-connect-personal-windows/ Windows] on the host where the source directory is located.
 
* If the source directory is not located on an existing Globus endpoint, install Globus Connect Personal for [https://docs.globus.org/how-to/globus-connect-personal-linux/ Linux], [https://docs.globus.org/how-to/globus-connect-personal-mac/ MacOS], or [https://docs.globus.org/how-to/globus-connect-personal-windows/ Windows] on the host where the source directory is located.
  
== Setup ==
+
== Log into Globus using CLI ==
  
 
On the host from where you want to run sync commands,
 
On the host from where you want to run sync commands,
Line 34: Line 34:
 
</pre>
 
</pre>
  
:* Verify you are logged into Globus using the <pre>globus whoami</pre> command and you should get your Globus ID in the output.
+
:* Verify you are logged into Globus using the <code>globus whoami</code> command and you should get your Globus ID in the output:
 +
<pre>
 +
$ globus whoami
 +
shl1@cornell.edu
 +
</pre>

Revision as of 21:03, 31 March 2020

This is a user-level guide for syncing a directory to CAC Archival Storage using Globus.

Prerequisites

  • You know how to log into Globus.
  • You are a user of a CAC project with archival storage service enabled. In this document, <CACUser> denotes your CAC user name and <CACProject> denotes your CAC project name.
  • On the host from where you want to run (either one time or regularly scheduled) sync commands, install Globus CLI client.
  • If the source directory is not located on an existing Globus endpoint, install Globus Connect Personal for Linux, MacOS, or Windows on the host where the source directory is located.

Log into Globus using CLI

On the host from where you want to run sync commands,

  • Log into Globus using Globus CLI:
 $ globus login
 Please authenticate with Globus here:
 ------------------------------------
 https://auth.globus.org/v2/oauth2/authorize?...........
 ------------------------------------
 
 Enter the resulting Authorization Code here: 
Copy and paste the URL into a web browser. Log into Globus as instructed in the web browser. After logging in, copy and paste the code back into the terminal.
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
  • Verify you are logged into Globus using the globus whoami command and you should get your Globus ID in the output:
$ globus whoami
shl1@cornell.edu