You may use Grive if you already have a Google Drive Account.
Setup Grive
- Open up Terminal (Ctrl+Alt+T)
- Add Grive repo:
sudo add-apt-repository ppa:thefanclub/grive-tools
. Hit Enter.
- Do a
sudo apt-get update
- Install Grive with
sudo apt-get install grive
- Although you want to backup entire
home
folder I recommend to backup your Documents
folder because home
folder contains many hidden user configuration files created by all programs that you use and would eat your online storage with no real usefulness. Anyway, it should work with any directory that you have write
permissions for. I'll go with my setup: cd ~/Documents
- Start Grive:
grive -a
- Open that URL in browser and allow grive to acces Google Drive.
- Paste the authentication code in terminal (right click and
Paste
; no Ctrl+V). It will start synchronizing. Let it finish. Congratulations! This is your first backup.
Now let's make it a scheduled action
- In Terminal:
sudo apt-get install gnome-schedule
- Open it:
gnome-schedule
- Click
New
dropdown arrow and select Recurrent task
- Make it look like this:

Note: the command is cd /home/<your_username>/Documents && grive
or grive --path /home/<your_username>/Documents
. Modify time and date as you like. First do not suppress output (Step 3), apply and test task from the main window. You should see Grive output. If it looks OK go back and edit task like in step 3.

You won't see it, you won't know about it, but weekly this task will be executed and your files will be synchronized. The drawback is that you can only select a folder to sync and you can't choose to sync it in a folder on Google Drive, it just uploads it in the root folder. Another disadvantage (maybe) is that it never deletes anything. If you delete something from computer and run Grive it will download that deleted file back to computer. If you delete something online, when you sync it is uploaded again from your computer.
Source: Regular backups using Grive on Ubuntu