Extensive documentation on the linux onedrive connector capabilities can be found at https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md - the information provided below is a very brief introduction for getting started. At the time of writing this document, HPC staff had only completed very limited testing of the Linux interface to OneDrive. The onedrive command can also be used to connect to SharePoint libraries (untested).
A command line based interface to OneDrive has been installed on HPC cluster servers. There is some configuration required before you start using the command(s) provided.
Create a "onedrive" directory somewhere within your scratch space directory.
Modify your environment by loading the onedrive module.
Authenticate with OneDrive:
Issue the command
You should get a response something like:
- Copy and paste the URL into a browser (on your desktop/laptop computer) and hit the Enter or Return key to load content. You will then need to authenticate to OneDrive - for most JCU staff/students SSO (single sign on) should take care of it for you. Once authentication has been successful, a blank page should be returned (may change in future). You need to copy the URI/URL that was returned (where you pasted the URL earlier) and paste the contents as a response to the
Enter the response uri:prompt. You should receive a message that indicates successful authentication.
Now it's time to configure your use of
onedriveon HPC. The following is very similar to a configuration that has been tested by HPC staff for use of OneDrive as an archive for files on HPC.
To confirm your configuration (may be larger than the contents of your configuration file), execute
- You are now ready to upload files to or download files from OneDrive, remembering that HPC storage is for research files only - all other files should be moved to another location (removed from HPC). For uploading files to OneDrive, copy/move files to the "
sync_dir" you configured - e.g., to move all *.dat files in your current working directory, use
mv *.dat /scratch/jc012345/onedrive.
Two aliases have been created for upload/download convenience. To upload files from your "
sync_dir", simply use the command:
- The progress of uploads will show up on your terminal. The command should tell you whether transfers were successful or unsuccessful. When finished, you may choose to verify success accessing your OneDrive storage from your desktop/laptop computer.
Downloading from OneDrive
At this stage, it looks like download capabilities are tied to a full sync (to be confirmed). If this is true, be aware that files you have uploaded to OneDrive from another personal/work computing device may not be permitted on HPC. If a file isn't directly related to your research activities, it must not be placed on HPC infrastructure.