Skip to content

How to Backup Linux Machine to Google Drive?

Back Up your Linux Computers Files and Folders to Drive Using Gnome. Here is Simple Guide to Backup Ubuntu to Google Drive.
How to Backup Linux Machine to Google Drive

Google didn’t develop a dedicated Drive app for Linux machines, and god knows why. They didn’t eliminate the freedom for the open-source community to come up with innovative ways to utilize the existing functions and infrastructure to create backups and upload on GDrive. Allow us to show you three ways to automate backups on Linux machines, including Ubuntu-specific and other distributions.

Is Google Drive compatible with Linux?

The straightforward answer is “NO” because the Google dev team never developed a dedicated app. However, they opened the API services for servers who want to upload the system backup on the Drive.

Cloud storage is available for all but is limited in terms of direct applications. They focused on streamlining operating systems such as Windows and macOS.

The API key function is working, and active VPS server users can automate the backups to Drive using it.

Automate Backups from Ubuntu to Google Drive

Ubuntu 20.4 (LTS) is what I’m running in the machine, and it’s installed on an SSD, not on Virtual Machine. Several flavored distributions are designed around the Ubuntu 20.4 framework, which makes it a suitable operating system for the process. Let me show you how to back up the entire system from Ubuntu to Drive cloud storage.

By the way, this feature is called Gnome Control Centre. Install gnome-control-center by entering the following commands in the terminal:

sudo apt update
sudo apt install gnome-control-center

Once installed follow the steps below to backup Ubuntu Computer to Google Drive.

  1. Open Settings.
    Open Settings
  2. Select “Online Accounts” and click on “Google” from the list.
    Select “Online Accounts” and click on “Google” from the listSelect “Online Accounts” and click on “Google” from the list
  3. Enter your email address and then press Enter.
    Enter your email address and then press Enter
  4. Confirm the access by completing Two-Factor Authentication.
    Confirm the access by completing Two-Factor Authentication
  5. Scroll down to the bottom and click on “Allow”.
    Note:
    Make sure to read what permissions and access you are granting Google here.
    Scroll down to the bottom and click on “Allow”
  6. Select what you want to backup from a Linux machine to Drive cloud storage.
    Select what you want to backup from a Linux machine to Drive cloud storage
  7. Open “Files” and find your email address in the left sidebar or locations.
    Open “Files” and find your email address in the left sidebar or locations
  8. I uploaded a text document from the Ubuntu folder, and it was present in Drive.
    Backup Linux Machine to Google Drive

Wasn’t that super easy? Ubuntu dev team came up with the solution, and they utilized what Drive was offering on the table. This is similar to what you get in Android devices, but the services are somewhat limited. Nonetheless, you can directly upload documents, emails, folders, files, from the Linux PC itself.

Backup Linux Machine to Google Drive Using Browser

You can back up the entire machine from the web-based application and indulge in laborious work. Let me give you a quick glimpse of it, so this tutorial can encourage you to give it a try.

  1. Open the browser.
  2. Go to the official Drive site and log in.
    Go to the official Drive site and log in
  3. Click on the “New” button.
    Click_on_the_“New”_button
  4. Choose “File upload” or “File folder”.
    Choose_“File_upload”_or_“File_folder”
  5. Locate the data to select it, then click the “Upload” button located at the top right corner.
    Note: I uploaded one folder only for the sake of the demonstration, but you can choose multiple folders here.
    Locate_the_data_to_select_it__then_click_the_“Upload”_button_located_at_the_top_right_corner
  6. A confirmation pop-up shows up on the screen and click on the “Upload” button.
    A confirmation pop-up shows up on the screen and click on the “Upload” button
  7. Let the folder upload in the Drive.
  8. The folder is saved successfully in Drive, and I viewed its content.
    The folder is saved successfully in Drive, and I viewed its content

It’s repetitive work, and there is no room for automation, but I don’t think you would have a solution without third-party tool support.

What’s next?

I have shown you two ways to backup Linux machines to Google Drive, and it is suitable for regular users & new server administrators. Many VPS servers lack sophisticated GUI in the server operating system. So you have to set up an API-based Google Drive manually. Contact the Canonical support team or refer to Ubuntu forums for further support.

Leave a Reply

Your email address will not be published. Required fields are marked *