rclone example using Google Drive

The following document walks through setting up rclone on the Research Computing environment and using it to interactive with Google Drive.


Create a GUI session into andes and launch a terminal


Configure an rclone integration for Google Drive

rclone config
n/s/q> n
name> gdrive
Storage> drive
client_id> <enter>
client_secret> <enter>
scope> 1
root_folder_id> <enter>
service_account_file> <enter>
y/n> <enter>
Browser opens, fill in email "elijah.w.gagne@dartmouth.edu" and click Next
Complete the Dartmouth Single Sign On process
Click "Allow" to grant rclone access to your Google Drive
y/n> <enter>
y/e/d> <enter>
e/n/d/r/c/s/q> q


Test

The following does a listing of data in your Google Drive

[d92495j@andes ~]$ rclone lsf gdrive: --max-depth 1
Code/
Documents/
Presentations/
_Archived/

The following uploads a file

[d92495j@andes ~]$ rclone copy slurm_test.sh gdrive:
[d92495j@andes ~]$ rclone lsf gdrive: --max-depth 1
Code/
Documents/
Presentations/
_Archived/
slurm_test.sh

 

References

 

Details

Article ID: 153533
Created
Tue 8/8/23 4:08 PM
Modified
Tue 8/8/23 4:09 PM