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:
It will ask you to name the new remote:
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.
We're going to go with the default for this, but you can use the link to create your own client ID.
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"
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.
It will show you a summary of the information you provided for you to confirm. You'll select "Yes this is OK"
Now you've successfully set up a remote. You can quit rclone config to start using it.
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:/