Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to search to see if Google Drive is supported the same way Ubuntu One is supported for Deja-Dup but I haven't seen anything concrete. I don't want to store a local copy of the backed up files, but rather put it directly to the Google Drive account and prevent it from being sync'd.

share|improve this question
Gdrive doesn't have official client for Linux, so I doubt a tool like that exists – MrVaykadji Mar 19 '14 at 18:12

You still cannot do so using deja-dup but fortunately it doesn't matter as you can use duplicity to achieve the same purpose. Deja-dup is the gui front-end for duplicity. You can use duplicity directly from the command line and surprisingly it is simpler than using the gui of deja-dup!

You need to install the package python-gdata first as it is not part of the base system.

sudo apt-get install python-gdata

After that you can use duplicity to put a local folder directly to google drive by issuing the following command:

duplicity localfolder gdocs://


duplicity localfolder gdocs://

In the second case it obviously won't ask for your gmail's password(but would still ask for the encryption passphrase).

Command to restore:

duplicity restore gdocs:// localfolder

In all the above cases localfolder is a folder in your home directory and you are running the commands from your home directory.

Two minor caveats. Firstly, while restoring you have to ensure that localfolder doesn't exist otherwise duplicity will abort saying localfolder already exists. Secondly, I have tested the above in ubuntu 14.04 so can't comment about the other versions.

share|improve this answer
This was hugely promising, but when trying it out, I get BackendException: Error while authenticating client: Server responded to ClientLogin request: 404, error, pointing out to a complaint of old authentication method. Is there any updated procedure on how to use duplicity with OAuth 2.0? – Huge Feb 19 at 21:20

The only solution I have come up with is to back up to a local drive using Deja Dup, then zip the folder and upload to Google Drive.

I am hoping to find a way to create a folder with Google Cloud or Google Drive and achieve incremental backups automatically.

Currently I get the error:

Cannot resolve hostname when using //
share|improve this answer

This was reported in this bug, for which a fix has been committed. The change should be included in version 32.

Related question with other options:

Backup with duplicity on Google Cloud Storage

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.