Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 at 18:12
add comment

3 Answers 3

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 //drive.google.com/
share|improve this answer
add comment

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://username@gmail.com/remotefolder

or

duplicity localfolder gdocs://username:password@gmail.com/remotefolder

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://username@gmail.com/remotefolder 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
add comment

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
add comment

Your Answer

 
discard

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.