Using rclone on Linux to Automate Backups to Google Drive

Using rclone on Linux to Automate Backups to Google Drive

As of now, Google has yet to release an official backup/sync client for Linux, and as a frequent WSL2 user, I was after a solution that would allow automated backups to Google drive from the WSL2 Linux file system/distro.

As of now, Google has yet to release an official backup/sync client for Linux, and as a frequent WSL2 user, I was after a solution that would allow automated backups to Google drive from the WSL2 Linux file system/distro.

I’m a big fan of both Windows & Linux, and the evolution of WSL2 (with an actual Linux kernel) is making it easier to work in an almost “real” Linux environment without the need for third-party virtualization software. Using rclone with WSL2 gives me the option of restoring project files from a recent backup should I accidentally trash my WSL2 Linux distro.

The following write-up describes an approach for using an open source package, rclone, to automate backups from Linux to Google drive.

Download/install rclone:

To download/install rclone:

$ cd $HOME
$ curl https://rclone.org/install.sh | sudo bash
...
rclone v1.53.1 has successfully installed.

This installs the binary to location /usr/bin/rclone.

Before being able to configure access for rclone to our target Google Drive account, we need to enable the Google Drive API and create appropriate credentials.

google-drive rclone linux automate backup

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Dedicated Linux Developer

Looking to develop real-time applications? **[Hire Dedicated Linux Developer](https://hourlydeveloper.io/hire-dedicated-linux-developer/ "Hire Dedicated Linux Developer")** from **[HourlyDeveloper.io](https://hourlydeveloper.io/...

How I Switched from Windows 10 to Linux Mint

This article is all about my journey on switching from Windows 10 to Linux Mint 20, how I got easily adapted to the Linux environment, and some resources that helped me to set up a perfect Desktop environment.

What Are Google Compute Engine ? - Explained

Google Compute Engine is a service-based infrastructure that allows clients to easily work through Google's physical hardware and Google compute cloud

User Administration in Linux - Linux Tutorial - Linux Training

User Administration in Linux - Linux Tutorial - Linux Training

Package Management in Linux - Linux Tutorial - Linux Training

Package Management in Linux - Linux Tutorial - Linux Training