Are you using Google Drive to store your files but don’t know how to sync it to Ubuntu?

Google does not provide a non-browser-based file client for Linux users. But there are several free and low-cost tools to help you. Below are three methods you can choose to follow.

Table of Contents
    How To Sync Ubuntu To Your Google Drive image 1

    ODrive (Open Drive)

    ODrive is an open-source graphic user interface client to sync or backup Ubuntu to your Google Drive.

    There is no need to open a web browser or use terminal tools. It’s simple, as there are no options, settings, or integrations to understand and master.

    Installation & Setup

    • To install, go to ODrive and click install.
    How To Sync Ubuntu To Your Google Drive image 2
    • You will now see a dialogue box asking if you want to install the flatpack application. Select OK.
    How To Sync Ubuntu To Your Google Drive image 3
    • You will now see that the software repository is included with the flat-pack application. Click install next.
    How To Sync Ubuntu To Your Google Drive image 4
    • The next step will ask you to authenticate your account using your Sudo password (your root account password). Click authenticate.
    How To Sync Ubuntu To Your Google Drive image 5
    • Once the download and installation are complete, press the super key or Windows key on your keyboard.
    • Type ODrive into the search box.  
    How To Sync Ubuntu To Your Google Drive image 6
    • Click on Open Drive. You will see that ODrive is now running and needs to be set up.
    How To Sync Ubuntu To Your Google Drive image 7
    • Now you need to set up and authenticate your Google Drive. Click next to run the ODrive setup. 
    • Connect your account and select the folder location where you want to store your Google Drive data.
    How To Sync Ubuntu To Your Google Drive image 8
    • After you have completed your ODrive settings, you will need to sign into your Google Drive account.
    How To Sync Ubuntu To Your Google Drive image 9
    • ODrive will ask you if it can have access to your Google account. You want to allow it.
    How To Sync Ubuntu To Your Google Drive image 10
    • You will now see that your account has been added to your Drive and also made a directory on your Linux machine.
    How To Sync Ubuntu To Your Google Drive image 11
    • Click the synchronize button to sync your Google Drive data with your Linux machine.
    • To verify that your syncing was completed correctly, look inside your home folder. You will see that there is a folder in your file manager that says Google Drive. Double click on the Google Drive folder to see your files inside.
    How To Sync Ubuntu To Your Google Drive image 12

    However, there is a downside to this simplicity. As it is a basic option, you can’t use selective sync and can’t exclude specific files from downloading.

    You can only sync ALL your Google Drive files to your computer. You have an all or none option – sync all or none of them. If you need the ability to customize which files you sync, this will not be the best solution for you.

    Here is an option to customize which files to sync to your Google Drive. The steps below outline how to use Insync.

    Insync

    Insync is a tool for both new and more advanced Linux users. It offers both a command-line interface (CLI) and a graphical user interface (GUI). With Insync, you can:

    • Get desktop notifications.
    • Use it with multiple accounts.
    • Sync shared files.

    The product is not free but comes with a 15-day free trial period. The pricing options (one-time fees) are:

    • Prime: $39.99 per Google account.
    • Teams: $49.99 per Google account (includes Prime plus shared drives sync).

    Follow the steps below to use Insync to sync your Ubuntu installation to your Google Drive.

    Install Insync

    • Start by installing Insync on your computer by choosing the DEB installer. Be sure to turn off any Google Drive clients before running the program.
    How To Sync Ubuntu To Your Google Drive image 13
    • Now you are ready to install the program. During the installation process, you will be prompted to set up an Insync folder.
    How To Sync Ubuntu To Your Google Drive image 14
    • This Insync folder is where your Google Drive files will be located. Open the program. The first thing you will see is your Google Drive directory.
    How To Sync Ubuntu To Your Google Drive image 15

    Insync doesn’t automatically sync your files when you install it. You will be prompted to identify the specific files you want to sync.

    Choose The Files

    • To start selectively syncing your files, click on the selective sync icon on the top right-hand corner of your dashboard.
    How To Sync Ubuntu To Your Google Drive image 16
    • The next screen you will see is the selective sync mode. This is the screen where you can select the files and folders you want to sync.
    How To Sync Ubuntu To Your Google Drive image 17
    • If you want to sync specific files within a folder and not all of them, you can do that too. When you click on the folder, you will be able to see the sub-folders and files within that folder.
    How To Sync Ubuntu To Your Google Drive image 18
    • To sync your entire drive, click select all.
    How To Sync Ubuntu To Your Google Drive image 19
    • After you have selected the files and folders you want to sync to your Google Drive, click apply to move on to the next step.
    • At this point, you will see a pop-up message asking if you are sure you want to apply your selective sync changes. If you are sure, click yes.
    How To Sync Ubuntu To Your Google Drive image 20
    • You will find your synced files and folders in your base folder.
    How To Sync Ubuntu To Your Google Drive image 21

    Saving To a Location Outside Of Insync

    You can also save your Google Drive folder to a different location outside of Insync, but only for top-level folders.

    Go back to your Google Drive and hover your mouse over the folder you want to sync. Then click on the sync to a custom location icon as seen in the screenshot below.

    How To Sync Ubuntu To Your Google Drive image 22
    • You will then see a menu prompting you to choose the location.
    How To Sync Ubuntu To Your Google Drive image 23
    • Once you have selected your folder, click open in the top right section of your dashboard. Then you will be given two choices. Your options are to sync it as a subfolder or merge it with another existing folder.
    How To Sync Ubuntu To Your Google Drive image 24
    • If you want to sync the file as a subfolder, click the blue button that says: Sync as a subfolder. You will then be taken back into your Google Drive. Open the location of the folder where you want to put the synced subfolder.
    • The new folder will be created where your synced files are located.
    How To Sync Ubuntu To Your Google Drive image 25

    Ubuntu GNOME Built-in Method

    Another option to sync all your files is the Ubuntu GNOME built-in method.

    Follow the process below to sync your Google Drive with Ubuntu. You will be adding your Google account to your GNOME Online Accounts list.

    First, you will need to mount your Google Drive account to your Nautilus File Manager. Then you will be able to access, add, and edit your files.

    Install & Open GNOME

    • You will access your files on Google Drive through the Nautilus file manager. Start by installing the GNOME Control Center and the GNOME Online Accounts packages.
    • Go to your Unity Dashboard or command line to open the GNOME Control Center.
    How To Sync Ubuntu To Your Google Drive image 26
    • Type GNOME control center in the command line section. Then click on Online Accounts.
    How To Sync Ubuntu To Your Google Drive image 27
    • Click on add account. Then select Google and add your Google account details. 
    How To Sync Ubuntu To Your Google Drive image 28
    • Next, you will be prompted to authorize access from GNOME so you can edit and get your Google Drive files.
    How To Sync Ubuntu To Your Google Drive image 29

    Note that this process does not give you access to your Google Drive unless you are on the Internet. However, it is an easy and effective way to sync your Ubuntu in the cloud with your Google Drive.

    If you need to use a file offline, you can drag it from your Google Drive and to a local folder on your computer.

    Even though Google doesn’t have an official client for Linux users on Ubuntu to sync your files, as you can see from the three options above, there are simple ways to accomplish the same thing.