문서의 이전 판입니다!
pacstall -I grive2
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
# 특히 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 형태이다.
mkdir SyncDir # 신규 동기화 디렉토리 생성 cd SyncDir grive -a # 신규 동기화 시작
grive 명령만으로 동기화를 수행한다.# 동기화 대상 디렉토리에서 cd SyncDir grive # 혹은 grive -p /path/to/SyncDir
-V : verbose-l [/path/to/logfile.log] : 로깅-a : 신규 동기화 인증-p [/path/to/sync] : 동기화할 디렉토리 지정./etc/fstab/의 해당 파티션 옵션에 fmask=111,uid=1000을 추가했더니 잘 작동했다.google-drive 는 $HOME 에 있는 구글 드라이브 디렉토리이다.systemctl --user enable grive-timer@$(systemd-escape google-drive).timer systemctl --user start grive-timer@$(systemd-escape google-drive).timer
inotify-tools, inotifywait 명령으로 변경 감지 동기화systemctl --user enable grive-changes@$(systemd-escape google-drive).service systemctl --user start grive-changes@$(systemd-escape google-drive).service
journalctl -f --user-unit=grive-timer@$(systemd-escape google-drive).timer journalctl -f --user-unit=grive-changes@$(systemd-escape google-drive).service