Added the install instruction for Fedora
|2 years ago|
|cmake/Modules||5 years ago|
|debian||3 years ago|
|grive||2 years ago|
|icon||8 years ago|
|libgrive||2 years ago|
|package/fedora16||5 years ago|
|systemd||2 years ago|
|.dockerignore||2 years ago|
|.gitignore||3 years ago|
|CMakeLists.txt||3 years ago|
|COPYING||8 years ago|
|Dockerfile||2 years ago|
|README.md||2 years ago|
|completion.zsh||4 years ago|
28 Sep 2016, Vitaliy Filippov
This is the fork of original “Grive” (https://github.com/Grive/grive) Google Drive client with the support for the new Drive REST API and partial sync.
Grive can be considered still beta or pre-beta quality. It simply downloads all the files in your Google Drive into the current directory. After you make some changes to the local files, run grive again and it will upload your changes back to your Google Drive. New files created locally or in Google Drive will be uploaded or downloaded respectively. Deleted files will also be “removed”. Currently Grive will NOT destroy any of your files: it will only move the files to a directory named .trash or put them in the Google Drive trash. You can always recover them.
There are a few things that Grive does not do at the moment:
These may be added in the future, possibly the next release.
When Grive is run for the first time, you should use the “-a” argument to grant permission to Grive to access to your Google Drive:
cd $HOME mkdir google-drive cd google-drive grive -a
A URL should be printed. Go to the link. You will need to login to your Google account if you haven’t done so. After granting the permission to Grive, the browser will show you an authenication code. Copy-and-paste that to the standard input of Grive.
If everything works fine, Grive will create .grive and .grive_state files in your current directory. It will also start downloading files from your Google Drive to your current directory.
To resync the direcory, run
grive in the folder.
cd $HOME/google-drive grive
Rules are similar to Git’s .gitignore, but may differ slightly due to the different implementation.
ainside any directory
b, but not b itself
There are tools which you can use to enable both scheduled syncs and syncs when a file changes. Together these gives you an experience almost like the Google Drive clients on other platforms (it misses the almost instantious download of changed files in the google drive).
Grive installs such a basic solution which uses inotify-tools together with
systemd timer and services. You can enable it for a folder in your
directory (in this case the
First install the
inotify-tools (seems to be named like that in all major distros):
test that it works by calling
Prepare a Google Drive folder in your $HOME directory with
# 'google-drive' is the name of your Google Drive folder in your $HOME directory systemctl --user enable grive-timer@$(systemd-escape google-drive).timer systemctl --user start grive-timer@$(systemd-escape google-drive).timer systemctl --user enable grive-changes@$(systemd-escape google-drive).service systemctl --user start grive-changes@$(systemd-escape google-drive).service
You can enable and start these two units for multiple folders in your
directory if you need to sync with multiple google accounts.
Files and folders which are shared with you don’t automatically show up in your folder. They need to be added explicitly to your Google Drive: go to the Google Drive website, right click on the file or folder and chose ‘Add to My Drive’.
For the detailed instructions, see http://yourcmc.ru/wiki/Grive2#Installation
You need the following libraries:
There are also some optional dependencies:
On a Debian/Ubuntu/Linux Mint machine just run the following command to install all these packages:
sudo apt-get install git cmake build-essential libgcrypt11-dev libyajl-dev \ libboost-all-dev libcurl4-openssl-dev libexpat1-dev libcppunit-dev binutils-dev \ debhelper zlib1g-dev dpkg-dev pkg-config
sudo dnf install git cmake libgcrypt-devel gcc-c++ libstdc++ yajl-devel boost libcurl-devel expat-devel binutils zlib
pkg install git cmake boost-libs yajl libgcrypt pkgconf cppunit libbfd
On a Debian/Ubuntu/Linux Mint you can use
dpkg-buildpackage utility from
to build grive. Just clone the repository,
cd into it and run
Grive uses cmake to build. Basic install sequence is
mkdir build cd build cmake .. make -j4 sudo make install
grive -m oldpath newpath(by Dylan Wulf, email@example.com)
First fork release, by Vitaliy Filippov / vitalif at mail*ru
grive -s subdir
Bug fix & minor feature release. Fixed bugs: