This article will help you back up your data from one of our Bren computing servers using Rclone, which is a command line program that helps you manage files on cloud storage. We are going to use Rclone to move data from Taylor, our MEDS computing server, to a personal google drive.
Open up the Terminal in an RStudio session on Taylor, and run the following commands:
1)
rclone config
2)
n
3)
It will ask you to name the new remote:
google_drive
4)
It will then ask you to choose the type of remote you're setting up. We're going to set up connection to a google drive, which should be #13.
13
5)
We're going to go with the default for this, but you can use the link to create your own client ID.
[ENTER]
6)
Default again
[ENTER]
7)
3
8)
For this step, you will need to create a google drive. We suggest you use your personal google account to create this drive so that you have access to it after your UCSB accounts expire. If you are limited by storage space, please come talk to us and we can go over other options.
Once you create your google drive, you will type whatever is in the red box in the following picture as your "root_folder_id"
9)
[ENTER]
10)
n
11)
n
12)
You're going to click on the link and sign into your personal google account (the same account you used to make your google drive in a previous step).
Once signed in, google will ask you for permission to establish a connection with rclone. You'll select "Allow".
You'll then be redirected to a page with your Authorization code. You can copy that code and enter it into your Terminal session on Taylor.
13)
n
14)
It will show you a summary of the information you provided for you to confirm. You'll select "Yes this is OK"
y
15)
Now you've successfully set up a remote. You can quit rclone config to start using it.
q
16)
Now you can copy your data on Taylor to the google drive that you made by running the following in the Terminal on Taylor:
rclone copy /file/path/of/data google_drive:/
*** if it throws an error saying "source file is being updated", you can run the following:
rclone copy --local-no-check-updated /file/path/of/data google_drive:/