문서의 이전 판입니다!
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install grive
sudo apt-get install git cmake build-essential libgcrypt20-dev \ libyajl-dev libboost-all-dev libcurl4-openssl-dev libexpat1-dev \ libcppunit-dev binutils-dev debhelper zlib1g-dev dpkg-dev \ pkg-config libstdc++-7-dev # 소스 압축푼 디렉토리로 이동(ext 파티션이어야 한다) dpkg-buildpackage -j4 # 상위디렉토리에 deb 패키지 생성됨 sudo dpkg -i <filename.deb>
grive -a --id [client id] --secret [client secret] # id 는 긴코드값.apps.googleusercontent.com 형태이다.
On your Drive folder and it will probably work.
If you want to use your ID and secret to build grive2 instead of using above command, you can edit the keys in
grive2/grive/src/main.cc
Lines 49 to 50 in 3929909
const std::string default_id = "615557989097-i93d4d1ojpen0m0dso18ldr6orjkidgf.apps.googleusercontent.com" ; const std::string default_secret = "xiM8Apu_WuRRdheNelJcNtOD" ;
mkdir SyncDir # 신규 동기화 디렉토리 생성 cd SyncDir grive -a # 신규 동기화 시작
grive
명령만으로 동기화를 수행한다.# 동기화 대상 디렉토리에서 cd SyncDir grive # 혹은 grive -p /path/to/SyncDir
# /home/myhome/GoogleDrive 디렉토리를 매시 15분, 45분마다 동기화하고 로그를 /tmp/grivesync.log로 남긴다. 15,45 * * * * /usr/bin/grive -p '/home/myhome/GoogleDrive' -V -l /tmp/grivesync.log
-V
: verbose-l [/path/to/logfile.log]
: 로깅-a
: 신규 동기화 인증-p [/path/to/sync]
: 동기화할 디렉토리 지정./etc/fstab/
의 해당 파티션 옵션에 fmask=111,uid=1000
을 추가했더니 잘 작동했다.