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.
mkdir -p -m 700 /scratch/jc012345/onedrive |
Modify your environment by loading the onedrive module.
module load onedrive |
Authenticate with OneDrive:
Issue the command
onedrive |
You should get a response something like:
[jc012345@ln01 ~]$ onedrive Authorize this app visiting: https://..... Enter the response uri: |
Enter the response uri:
prompt. You should receive a message that indicates successful authentication.Now it's time to configure your use of onedrive
on 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.
mkdir -p ~/.config/onedrive cat <<EOF >~/.config/onedrive sync_dir = "/scratch/jc012345/onedrive" skip_file = "~*|.~*|*.tmp" skip_dotfiles = "true" skip_symlinks = "true" upload_only = "true" no_remote_delete = "true" remove_source_files = "false"EOF |