Last active
August 29, 2015 14:12
-
-
Save hotakasaito/bbc96273da3e5b3b80b1 to your computer and use it in GitHub Desktop.
google driveの特定のフォルダをlinux(centos)上で同期させる ref: http://qiita.com/hotakasaito/items/8ed052c1dc12aa118b73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install golang git mercurial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir $HOME/go | |
cat <<EOF >> ~/.bash_profile | |
export GOPATH=$HOME/go | |
export GOROOT=/usr/lib/golang | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go get github.com/rakyll/drive/cmd/drive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go get -u github.com/odeke-em/drive/cmd/drive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drive init drive-sample | |
# ここで認証が走るので出てきたURLをブラウザで開く | |
cd drive-sample | |
drive pull --no-prompt フォルダA/フォルダB/フォルダC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drive push --no-prompt フォルダA/フォルダB/フォルダC/sample.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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