Deja-Dup Google Drive Support
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.
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://[email protected]/remotefolder
or
duplicity localfolder gdocs://username:[email protected]/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://[email protected]/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.
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/
This was reported in this bug, for which a fix has been committed. The change should be included in version 32.
Update: The fix was reverted due to issues with the duplicity backend. However, duplicity can still do this. There is a question on SO about how to get it working with Google's OAuth, at least with the Duply frontend as of December 2015. This involves installing pydrive
, setting up access on your Google account, and creating a settings file for duplicity.
Related question with other options: Backup with duplicity on Google Cloud Storage