Skip to content

Instantly share code, notes, and snippets.

@hotakasaito
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotakasaito/bbc96273da3e5b3b80b1 to your computer and use it in GitHub Desktop.
Save hotakasaito/bbc96273da3e5b3b80b1 to your computer and use it in GitHub Desktop.
google driveの特定のフォルダをlinux(centos)上で同期させる ref: http://qiita.com/hotakasaito/items/8ed052c1dc12aa118b73
sudo yum install golang git mercurial
mkdir $HOME/go
cat <<EOF >> ~/.bash_profile
export GOPATH=$HOME/go
export GOROOT=/usr/lib/golang
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
EOF
go get github.com/rakyll/drive/cmd/drive
go get -u github.com/odeke-em/drive/cmd/drive
drive init drive-sample
# ここで認証が走るので出てきたURLをブラウザで開く
cd drive-sample
drive pull --no-prompt フォルダA/フォルダB/フォルダC
drive push --no-prompt フォルダA/フォルダB/フォルダC/sample.txt
cd $GOPATH/src/github.com/odeke-em/drive
git checkout v0.0.8
cd cmd/drive
go get -x
drive version
drive version 0.0.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment