Last updated
Last updated
This software syncs your HPC directory with many popular cloud storage services. Here we will cover instructions for Microsoft's OneDrive.
First, we need to add rclone to your path. You can also check to make sure you're sourcing the correct file using the which
_ _command.
If you wish to have a separate directory which will contain your OneDrive, make it and navigate there before continuing. For example:
Next, run the rclone configuration. A prompt will notify you that no remote connections exist. To set up a new connection, typen.
It will prompt you to enter a name. Enter the name, in this case, remote
.
A lot of information will populate the screen. The first will be a list of available services. In this section, we will choose #10, OneDrive.
The next two prompts will need to be left blank. Simply press _Enter _to move to the next.
The next step will ask if you would like to use an autoconfiguration. Since we access the HPC remotely, we must manually connect. Therefore, type n.
The configuration will provide a web address for you to copy and paste into your browser. A browser window may automatically appear.
In the browser window, either select the OneDrive account you wish to use or sign into one.
Microsoft will ask if you'd like to provide account access to rclone. Select Allow. Then, it will give you a code to copy and paste into your terminal window.
Your terminal will ask you to verify your actions. If there are no errors, type y.
Finally, we'll need to exit the set-up. Do so by typing q.
You have completed the set-up for Microsoft OneDrive.
In this section, we'll cover a few basic commands to get your HPC directories and OneDrive folders synced.
First, you can list files and directories in the remote drive (OneDrive). In this command, you start by using the rclone command, followed by the list command. Then, the name of the remote service is needed, here the name isremote. After the name, include a colon and then the path (folder). The following is the standard format, followed by an example.
Similarly, you can list the directories in your cloud storage.
If you'd like to sync two folders (one on HPC and one on OneDrive), you can use the following command:
rclone sync source:path destination:path
If dest:path doesn’t exist, it is created and the source:path contents go there.