Rclone Ubuntu Server to Google Drive
This is a component tutorial for Automatic Backups from Ubuntu Server to Google Drive
- Update package manager
apt update
- Install workflow dependencies
apt install sudo vim curl unzip zip
- Install Rclone
sudo -v ; curl https://rclone.org/install.sh | sudo bash
- Run
rclone config
- Go to Google Cloud console and create a New Project.
- Once a new project has been created, go to Enabled APIs & services and add
- Search for Google Drive API, click into it and Enable
- Go to OAuth consent screen and select External and fill out the information
- On the next screen under Scopes, click Add or Remove Scopes and add
.../auth/docs
.../auth/drive
.../auth/drive.metadata.readonly
- On next screen under Test users, click Add Users and add yourself.
- Click on Publish App
- Navigate to Credentials and create an OAuth client ID with Application type as Desktop app.
- Save the credentials.
- In Ubuntu,
cd
to the directory you want to backup and runrclone copy . StorageName:/GoogleDriveFolder
replacingStorageName
with the remote name you assigned.
Published on 07-03-2023