Monday, April 29, 2013

google drive on linux

Google has sucked that there is no Linux google drive client or support.  I really need something better than what I've got right now.

A search today turned up two links:

grive  This didn't work so well last may, and may work better now.

Here is a mounter which uses fuse to get to google drive.  you have to manually do an rsync, but that isn't really so bad (depending on length of the rsync, etc.).

Insync (from the webupd8 mob)

I'm installing Insync.  here are my notes:

add repo
echo "deb $(lsb_release -cs) non-free" | sudo tee /etc/apt/sources.list.d/insync.list
get key
wget -O- | sudo apt-key add -
update sources 
sudo apt-get update
sudo apt-get install insync-beta-ubuntu
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get -y install thunar 
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install thunarx-python 
sudo apt-get install insync-beta-xfce


  1. Jim, Did you manage to get an rsync into a google drive working with google-drive-ocamlfuse.

    I have a mounted google drive account and when I try to rsync some files into it it fails when rsync trys to rename the temporary files to the destination filenames...

    [m@n ~]$ rsync -auv /user1/2008.38\ ACCESS\ STATEMENT/ /mnt/google-drive/2008.38\ ACCESS\ STATEMENT/
    sending incremental file list
    Insync Pro Receipt.pdf
    rsync: rename "/mnt/google-drive/2008.38 ACCESS STATEMENT/.Insync Pro Receipt.pdf.qNOU6x" -> "Insync Pro Receipt.pdf": Device or resource busy (16)
    rsync: rename "/mnt/google-drive/2008.38 ACCESS STATEMENT/.hello.tlybsQ" -> "hello": Device or resource busy (16)

    sent 28023 bytes received 59 bytes 1369.85 bytes/sec
    total size is 703240 speedup is 25.04
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]
    [m@n ~]$

  2. I am still using an XP service machine on my network with google drive and putting data there. That does lead to file name mangling, but I am not sure that google drive preserves the same spelling conventions as linux anyway.

    So far it is working. I recently upgraded to a 1tb drive and will be getting a lot more experience with uploads, as more than just photos and a few bits will now be put there. More chance for case conflicts, most likely.