一般的環境中,都有瀏覽器,Windows/Linux/FreeBSD都有
安裝rclone不會有什麼問題
但是在伺服器的環境中,卻沒有辦法這麼做
要怎麼讓rclone在純文字環境中跑起來呢?
下載 RCLONE
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
解壓縮
unzip rclone-current-linux-amd64.zip
進資料匣
cd rclone-*-linux-amd64
安裝檔案
sudo cp rclone /usr/bin/
sudo chown root:root /usr/bin/rclone
sudo chmod 755 /usr/bin/rclone
安裝MAN說明
sudo mkdir -p /usr/local/share/man/man1
sudo cp rclone.1 /usr/local/share/man/man1/
sudo mandb
以上安裝完畢
=======
進行設定
產生 key,SERVICE ACCOUNT (Google API Console)
https://console.developers.google.com/
上傳jason key, 填入id,就可以正常使用了
=======
Fetching team drive list…
2017/12/28 09:48:45 NOTICE: Time may be set wrong – time from “accounts.google.com” is 9m17.872400656s different from this computer
2017/12/28 09:48:45 Failed to configure team drive: list team drives failed: Get https://www.googleapis.com/drive/v2/teamdrives?alt=json&maxResults=100: oauth2: cannot fetch token: 400 Bad Request
上面問題,使用NTP處理
2017/12/28 09:46:45 Failed to configure team drive: list team drives failed: googleapi: Error 403: Project xxxxx is not found and cannot be used for API calls. If it is recently created, enable Drive API by visiting https://console.developers.google.com/apis/api/drive.googleapis.com/overview?project=xxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured
上面問題,打開網址,啟用API解決
PS. FreeBSD版的RClone功能少很多
隨機文章
- 我的一個子站中標了 (2009-05-13)
- 壓力鍋滷雞腿(棒棒腿) (2011-11-16)
- 拿錢辦事的人 怎麼配跟別人說誠信 怎麼有臉去批評別人 (2013-04-11)
- FAUST加密勒索病毒 不僅僅是加密,還弄壞了我的NAS (2023-02-22)
- 泰國水災,台灣民眾卻成了受災戶 (2011-11-10)