Google drive

From campisano.org
Jump to navigation Jump to search

Google Drive

Mount

  • Pre-requisite
sudo apt-get install python2.7-dev
  • Install as simple user
wget https://github.com/dsoprea/GDriveFS/archive/0.14.5.zip -O GDriveFS-0.14.5.zip
unzip GDriveFS-0.14.5.zip
cd GDriveFS-0.14.5
./setup.py install --user
cd ..
rm -rf GDriveFS-0.14.5 GDriveFS-0.14.5.zip
  • Authorize
~/.local/lib/python2.7/site-packages/gdrivefs-0.14.5-py2.7.egg/EGG-INFO/scripts/gdfstool auth -u
### open the suggested link with the browser and authorize the app, obtaining the auth token
### then use the token:
~/.local/lib/python2.7/site-packages/gdrivefs-0.14.5-py2.7.egg/EGG-INFO/scripts/gdfstool auth -a ~/.gdfs.creds <YOUR_TOKEN>
  • Use
mkdir ~/gdrive
### to mount:
~/.local/lib/python2.7/site-packages/gdrivefs-0.14.5-py2.7.egg/EGG-INFO/scripts/gdfs ~/.gdfs.creds ~/gdrive
### use it:
ls -l ~/gdrive
### to umount:
fusermount -u ~/gdrive/

Use as backup (Dropbox style)

References