
google drive api費用 在 コバにゃんチャンネル Youtube 的精選貼文

Search
定價與方案| Google Maps Platform。 只要你每月的使用量沒有超過$200 美元的免費額度,我們就不會向你收費。 提醒你,Maps Embed API、Maps SDK for ... ... <看更多>
定價與方案| Google Maps Platform。 只要你每月的使用量沒有超過$200 美元的免費額度,我們就不會向你收費。 提醒你,Maps Embed API、Maps SDK for ... ... <看更多>
#1. Q. Google API收費政策的說明與影響 - iWare網頁設計
Google API 宣布正式收費,對於程式設計與網站程式開發者來說,是不小的震撼。其實根據Google API付費政策的說明表示,他們分析過大多數的用戶因為用量不大, ...
#2. Google 地圖平台計費方式
2022年2月15日 — SKU:Dynamic Street View. 街景服務全景和地圖載入量現已分開計費。每次針對Maps JavaScript API、Maps SDK for Android ...
#3. 【Google API 教學】如何申請OAuth 2.0 憑證 ... - 測試先生
申請Google Drive API OAuth 2.0 憑證流程 · 建立GCP(google cloud platform) 專案 · 啟動Google Drive API ...
#4. 取得Google API Key(金鑰) 流程,啟用服務+ 瞭解配額限制 ...
可看到Custom Search API 的每日額度是呼叫100 次; 每個API 的免費額度都不同; 想要付費取得更多額度的話,可點擊「查看價格詳細資料」.
#5. 監控API 配額- Google Workspace 管理員說明
API 配額可避免Google 基礎架構在自動化流程中使用過多的API 要求。一旦要求數量達到每日的API 配額標準後,API 配額就會封鎖流量。 資料遷移作業會.
#6. [教學] 如何申請並使用Token存取Google Drive REST API (不需 ...
現在網路空間愈來愈多,Google Drive也是其中一個熱門的空間,不但空間大且還 ... 建立完成後點 [啟用API和服務] 之後搜尋 Google Drive API 並點選它.
#7. 【google drive api限制】資訊整理& google drive api收費相關 ...
google drive api限制,google drive api費用的蘋果、安卓和微軟相關APP,2021年3月9日— Configure this as a Shared Drive (Team Drive)? ... 放了一天來看因為SSH 允許 ...
但LineBot要能和Google試算表的API溝通,便要先經過許多的認證,取得Google的憑證及權杖,申請的過程有點 ... 7、依下圖依序操作,名稱Google Sheets API Quickstart ...
#9. 怎麼申請Google Map API Key 綁定信用卡? | 威亞網頁設計
Google Map 使用載入次數(response)計算費用,每月有200 美金的免費額度,大部分會用到的選項是「動態地圖Dynamic Maps」,約可使用28,000 次/月,超過每 ...
#10. google api收費2022-精選在臉書/Facebook/Dcard上的焦點 ...
定價與方案| Google Maps Platform。 只要你每月的使用量沒有超過$200 美元的免費額度,我們就不會向你收費。 提醒你,Maps Embed API、Maps SDK for ...
#11. API串接服務- 工作流程自動化 - 田中系統
資料分散在不同平台,有異動的話就要登入個別平台去修改很費工夫 · 查閱資料需要到不同後台調資料,看到的也不是即時更新的資訊 · 採購多種軟體原意是希望作業流程更方便,但 ...
#12. 【JSDC客座文章】第一次接觸Google API就上手 - iThome
如何悠遊在Google的眾多API中,結合Node.js在RESTful API存取上的彈性, ... Google自Search推出後,相繼推出Gmail、Docs等服務,屢屢都以壓倒性的 ...
#13. 方案與定價 - Google One
Google One 提供100 GB、200 GB 和2 TB 等多種雲端儲存空間方案,可滿足所有人的需求。除了2 TB 方案包含的Android VPN 功能僅在部分市場推出之外,所有方案都含有家庭 ...
#14. 如何從Google 取得授權來使用Boxafe for Google Workspace?
Admin SDK API; Google People API; Gmail API; Google Calendar API; Google Drive API. 前往 >[IAM & Admin(IAM & 管理員)]> ...
#15. 在Google Docs 中共同激盪出最棒的構想
使用Google 文件建立及協作處理線上文件。您可以在任何裝置上安全地 ... 您可以直接透過Gmail 回覆註解、從Google Sheets 嵌入圖表,並藉由Google Meet 輕鬆分享內容。
#16. 使用G Suite 和GCP 进行图片归档、分析和生成报告操作
在Codelab 中,对Vision API 的每次调用都会计入该免费层级,并且只要您不超出其聚合次数(每个月),就不会产生费用。 某些Google API,即G Suite 的月度订阅方案可能适用 ...
#17. Google Cloud Platform
Google Cloud Platform 可讓您使用與Google 相同的基礎架構,建置、部署及調整各種應用程式、網站和服務。
#18. Platform Pricing & API Costs
Learn about the flexible Google Maps Platform costs and API pricing built to fit your business goals and needs, while staying within budget.
#19. 價格追蹤:使用gspread 自動更新Google Sheets - 翼之都
有的時候這些實驗數據是隨著時間固定產生的,此時如果總是自己剪剪貼貼,難免會覺得有些浪費時間。幸好,Google 提供了Sheets API,所以我們可以透過程式 ...
#20. 取得Google Maps API 金鑰- Xamarin - Microsoft Learn
本文內容 · 取得簽署金鑰指紋 · 建立API 專案 · 取得API 金鑰 · 將專案連線至計費帳戶 · 將金鑰新增至您的Project · 相關連結.
#21. 谷歌云端硬盘_百度百科
Google Drive 将向用户提供15GB的免费存储空间,足够用户日常使用,如果用户需要更大的空间,可选择升级至100GB空间,每月费用为1.99美元;或是升级至1TB,月费9.99美元;或 ...
#22. Google 商家檔案- 在Google 上刊登商家資訊
使用免費的商家檔案宣傳店面或服務範圍,把在Google 搜尋和Google 地圖找到你商家的使用者變成新客戶。善用相片、優惠資訊和貼文,打造具有獨特風格的商家檔案。
#23. Google Apps Script:自動化、完全整合
預先整合的Google Workspace API 加上超過100 種其他Google 服務的原生整合項目(例如YouTube、Google Analytics (分析)、BigQuery 等),讓您輕輕鬆鬆就能善用 ...
#24. 大家好! 小弟最近有寫一個如何透過python 上傳檔案到Google ...
大家好! 小弟最近有寫一個如何透過python 上傳檔案到Google Drive 如果有興趣或是想了解的朋友可以參考看看. ... 形式/費用:Google Meet 線上課程,免費參加.
#25. Google Drive Apis の利用に関して
Drive API は無料です。 請求先アカウントの登録(クレカの登録)も不要です。 2016年6月5日日曜日 19時46 ...
#26. [Python] 串接Google Sheet API - 工程的日子每天都很師
(圖片來源) 在使用Google Sheet API 之前必須先啟用該服務,如何啟用可以 ... 'client_secret.json' APPLICATION_NAME = 'Google Sheets API Python ...
#27. [Python爬蟲教學]解析如何串接Google Sheet試算表寫入爬取的 ...
其中的實作重點包含:. 啟用Google Sheet API; 建立Google Sheets API憑證; 建立Google Sheet ...
#28. Google Drive - 中文百科知識
Google Drive 是谷歌公司推出的一項線上雲存儲服務,通過這項服務,用戶可以 ... 另外,Google還會向第三方提供API接口,允許人們從其它程式上存內容到Google Drive。
#29. Nintendo Switch Online費用試算- Google Drive
Edit with the Sheets app ... NO THANKSUSE THE APP. Go to Drive. Nintendo Switch Online費用試算. 公告; 會員費用; 兌換券費用; 匯率參考; 遊戲價格筆記 ...
#30. 将Firebase 添加到您的Flutter 应用
运行以下命令,使用您的Google 帐号登录Firebase:. firebase login. 从任何目录运行以下命令来安装FlutterFire CLI:. dart pub global activate flutterfire_cli ...
#31. 為什麼要升級?個人版Gmail 與企業版Google Workspace (原G ...
相信各位對Gmail 早已不陌生,而Google Workspace (原G Suite) 是Google推出的協同 ... Calendar、Google Drive、Google Chat、Google Meet、Google Document、Google ...
#32. Where can I find the price list for Google Drive API?
There is no extra charge for more quota for the Google Drive API. It will be granted as long as you are making a reasonable request.
#33. Google Workspace (G Suite)費用參考 - 瑞竣科技
項目, 說明, 費用. Gmail, 電子郵件服務, 72美金(帳號/年). 日曆, 行事曆服務. 雲端硬碟, Google Drive、Google Docs. Hangouts, 線上通訊、視訊服務.
#34. Calibre Sync - Google Play 應用程式
終身支持,無額外費用,無訂閱費。 口徑同步可以: - 幫助您訪問最流行的個人云服務上的完整Calibre 庫,包括Google Drive、Dropbox、Microsoft ...
#35. Active Backup for Google Workspace | 群暉科技Synology Inc.
建立備份任務前是否有其他準備事項? 請建立服務金鑰並允許Drive API 存取Google Drive。了解更多。 執行Active Backup for Google ...
#36. Google Maps API 學習筆記- 5:抓目前位置、計算到各點距離
Distance Matrix API 限制. Google Maps API 每月有200 美金的額度,超過後就會收費,用多少算多少。 一些限制在 ...
#37. 【Python】Google Sheet 免費資料庫替代品! — 基礎CRUD 新 ...
介紹Python 與Google Sheet API 的結合,在這一篇中講解如何利用Python ... .google.com/feeds",'https://www.googleapis.com/auth/drive'] creds ...
#38. google drive - 中文百科全書
google drive 歷史沿革,不同版本,功能介紹,功能特色,容量和費用,用戶規模, ... 另外,Google還會向第三方提供API接口,允許人們從其它程式上存內容到Google Drive。
#39. Google通过其Drive API提供免费的开发人员课程 - 新经网
据Google称,Code School通常每月收取29美元的费用来上这些课,但Google Drive课是免费提供的。 “在Discover Drive课程中,您可以按照自己的进度从Web浏览 ...
#40. Google Pay (台灣) – 更優質的付款方式
Google 支付服務,全新升級登場! 使用Google Pay,您可以在全球數百萬個線上或實體商店輕鬆快速完成結帳。這項服務能夠整合您結帳時需要的所有資訊,並確保您的資訊 ...
#41. 【案例】Google Drive無限空間終止,企業備份新選擇!
(包含了需要管理儲存內容的每月費用、信用卡綁定消費的服務、相關設定等。) 考量的重點. 由於自家的產業,儲存的照片與影像資料龐大,大小是100TB或1PB ...
#42. 活動報名系統- 活動場次資訊
無痛連結Google Workspace, REST APIs (含Demo)(基礎) ... 課程會針對Google Calendar, Gmail, Google Drive, Sheet, Doc, Slide等常用功能之API進行介紹並說明如何 ...
#43. 適用Google 雲端硬碟的電子簽章 - HelloSign
透過HelloSign 整合功能,就能輕鬆將具有法律約束力的電子簽章新增到Google 雲端硬碟中的文件。您可以在Google 雲端硬碟中簽署並下載文件,或新增欄位供他人填寫簽署。
#44. Google 雲端硬碟Google drive 簡介- 八拓行銷 - SEO公司
Google Drive 是一種基於雲端的免費存儲服務,使用戶能夠上網存儲和訪問想要的資料,例如SEO ... 第三方應用程式都是免費的,但它們會向用戶收取使用某些功能的費用。
#45. Proxmox VE搭Rclone將VM備份至Google雲端硬碟實戰- OSSLab
此法目前僅限Full Backup (全備份),不支援Proxmox Backup Server (PBS)的Incremental backup (增量備份) 功能。 Rclone設定Google Drive API與OAuth ...
#46. 如何使用Google Drive當作Media Library? - 邁向慵懶人生
Google Drive 免費空間為15GB,可當作WordPress Media Library (媒體庫) 儲存空間 ... Google API 很多,在搜尋輸入drive 篩選出Google Drive API。
#47. 使用訪問令牌將文件上傳到Google Drive,需要什麼範圍的身份 ...
(Upload file to Google Drive using access token, What scope of authentication ... By the way, the Drive API is not GData‑based so you don't need to add the ...
#48. 3 個步驟不用下載檔案從Google Drive 直接備份到Amazon S3
AWS Pricing Calculator - 費用試算. S3 服務將資料存放在名為Bucket 的對象中,可以想像就是一個獨立的硬碟,並且可以選擇不同的區域 ...
#49. (可超商付款)現貨!原帳號老牌海外GOOGLE DRIVE無限容量 ...
Google Drive API v2/v3 12. Insync –目前使用正常13. Google-Drive-ocamlfuse (須安裝到PC) 新增無限空間不能使用的應用程式: 1. PlexCloud / PlexDrive 2.
#50. [Google AdSense] 如何設定電匯收款| 文章 - DeTools 工具死神
各家銀行的手續費可能有一些差異,去申辦前可以確認一下。 Step2: 登入Google Adsense 之後,從付款-> 付款資訊找到管理付款方式後進入。 Step3:.
#51. 串接Google Sheet API 操作試算表運算 - Cindy C
gspread 是一個為了使用Google Sheets的Python API,讓Python 可以開啟電子表格、讀寫編輯、和控制訪問及共享權等。 2. oauth2client. oauth2client 提供 ...
#52. Google One 即將取代Google Drive,空間全面提升,快搶先 ...
另外,這次新加入了US$2.99 200GB/月,以及原本的US$9.99 1TB/月將會免費自動升級一倍至2TB/月,而2TB 以上的月費則維持不變。 Google One 預計快將推出, ...
#53. Google Drive API で Google ドライブへアクセス
基本的には Google Sheets API や Gmail API の利用と同様ですが、Google API シリーズを初めて読まれる人もいるかと思いますので、手順を説明します ...
#54. Slack 公平收費政策
假設你支付了某位使用者的費用,但該使用者後來不再使用服務,我們會依未使用的時間,按比例 ... 使用付費方案時,你的付費範圍是上線使用Slack 的工作空間成員費用。
#55. Google Maps API大改版前必知,網站需因應調整的3大步驟
2018年6月11日起Google Maps API將改版為Google Maps Platform,由於計費方式調整,如果沒有取得API金鑰或成為付費用戶,都會使地圖在6月11日起被變更 ...
#56. 特價中*Google drive 無限容量空間可用現有Email
Google Team Drive無限容量空間,全球適用,絕無額外收費,只需要提供你現有gmail電郵即可,無需提供其他資料,絕對安全。 *特價中* (原價$250) 單價$199 = 一個永久 ...
#57. Google Workspace - 維基百科,自由的百科全書
2014年6月25日- Google 宣布了Drive for Work,這是一種新的Google Apps 產品,具有無限檔案儲存空間、進階審計報告和新安全控制功能,而每位使用者每個月的使用費用 ...
#58. Google One服務將在台開通近期開放使用 - SOGI手機王
今年5 月中宣佈更名的Google One 服務,稍早終於開放台灣地區用戶申請使用,將可透過全新服務收費方案使用更大線上儲存容量,同時也宣佈提供會員專屬 ...
#59. グーグルのAPIを使うときに欠かせないGoogle OAuthの作り方 ...
Gmail、Google Maps、YouTube、Google DriveなどをAPIとして活用する際に必要となるGoogle OAuthの作り方と、Androidアプリを例にした使い方を解説 ...
#60. Smartbar for Google Workspace - Chrome 線上應用程式商店
Add AODocs® features to Google Workspace™ (Google Drive™, Docs™, Sheets™, Slides™, ... Redirect URL, Modify Headers & Mock APIs.
#61. Google Drive 遷移教學- 數位科技板 - 動漫基地論壇
如果是Google Drive 遷移Microsoft 的話,開GCP 有300 美金可以使用,但是傳輸到Microsoft 要算流量費,注意不要超過300 美金。 第一篇使用rclone
#62. ∮Ω奧米加空間∮-【原創】Google Drive 遷移教學
除非您升級為付費帳戶並明確啟用計費功能,否則我們不會收費。 ... 按下[Enable the Drive API] 此時需要登入google 帳號請登入GCP 的帳號,登入完畢 ...
#63. 在Google Cloud Platform 中開始Cloud Volumes ONTAP 使用 ...
當您選擇GCP做為雲端供應商時、Google會提示您登入您的帳戶並授予權限。按一下「允許」可授予部署Cloud Manager所需的運算API存取權限。 使用Cloud ...
#64. Google Drive API 速率限制 - 免费编程教程
无论您的企业处于起步阶段还是数字化转型之路,Google Cloud 的解决方案和技术都有助于规划成功之路。谷歌云端硬盘APIGoogle Drive API 的更多配额不收取额外费用。
#65. 谷歌云端硬盘是什么 - 泪雪网
谷歌云端硬盘(Google Drive)是谷歌公司推出的一项在线云存储服务 ... 还会向第三方提供API 接口,允许人们从其它程序上存内容到Google Drive。
#66. GoogleDriveAPIの利用料金はいくら?利用制限も確認【2021 ...
GoogleDrive やGoogleMapsをはじめとするGoogleのサービスは非常に便利 ... GoogleMapsAPIなどは呼び出すAPIや回数によって料金がかかってきます ...
#67. [心得] Google Drive 遷移教學- 看板Free_box - 批踢踢實業坊
如果是Google Drive 遷移Google Drive 的話,建議開免費GCP 來轉移, ... 請放心,除非您啟用了自動計費功能,否則即便抵免額用盡也不會產生費用。
#68. google drive - 谷歌公司下的在线云存储服务 - 快懂百科
Google Drive 服务会有本地客户端版本、也有网络界面版本,后者与Google Docs界面相似。会针对Google Apps客户推出,配上特殊域名。另外,Google还会向第三方提供API接口, ...
#69. Google 宣布強制更新企業Google Workspace 雲端硬碟資安權限
具有Drive API 權限的開發人員或是type=domain、type=anyone、where withLink=true (v2)、allowFileDiscovery=false (v3) 將會受到影響,可以來這邊查看哪些正在執行的專案 ...
#70. 把Google 試算表當資料庫,並取得API 實作心得 - 宙思設計
在Google 的雲端硬碟服務中,試算表是我特愛的樣服務之一,而在這個Google 當道的世代..相信大家也都有使用過吧!用起來就跟Microsoft Office 中 ...
#71. 拯救雲端硬碟資料,將G Suite 教育版帳號中的檔案轉移至其他 ...
拯救雲端硬碟資料,將G Suite 教育版帳號中的檔案轉移至其他Google 帳號 ... 會用到 name> drive # 選擇雲端服務 Storage> drive # 設定Google API ...
#72. 【懶人包】Google Workspace (原G Suite) 全新改版
不僅在協作與視訊上新增更多進階功能,同時也在版本及價格的定位上做出更多分層。iKala Cloud 在此整理懶人包,讓您一次搞懂全新的Google Workspace,以及 ...
#73. Google API 定價的改變,對開發者而言代表了什麼呢? - 歐斯瑞
你還傻傻地不知道嗎!Google在2018年5月2日宣布,將從2018年6月11日開始,要求凡所有使用Google地圖平台的用戶,綁定信用卡計費功能,並為所有使用Google地圖的項目 ...
#74. AWS Lambda + GitHub API + Google Sheet = 自動化簽到系統
而AWS Lambda 就是這樣的一個服務,你只要把你的程式碼放上去就好了,剩下的你都不用管,計費方式是程式的執行時間,可能是因為還在推廣期的關係,所以 ...
#75. Google 教育信箱無限儲存空間即將取消,最快速的檔案搬家 ...
學校單位的管理者,擁有該校所有Google Drive 帳號的管理權及檔案檢查權,但學校管理員 ... Dropbox 大家都很熟,2TB 的雲端空間加值費用(Dropbox 方案表),跟Google ...
#76. [坑] 使用谷歌账号进行第三方登录后, 调用"翻译API" 产生的收费 ...
小心使用Google OAuth。 因为调用谷歌翻译API (Cloud Translation) 会造成意外收费问题。 我作为开发者被扣了95美金。以此为鉴。
#77. Google Drive APIを利用する上で注意すべきポイント
Google Drive API にはいくつかの制限が存在します。今回のコラムでは、 Google ドライブAPIを利用する上で気をつけるべき制限について解説します。
#78. [指南] Synology 對於Amazon 移除Amazon Drive API 的解決 ...
你可以Google 1 Drive v.s. Dropbox 方案比較2019,看一下Google 1 v.s. Dropbox 的價格和便利性的比較,或是參考其他的雲端硬碟。Synology Cloud Sync 可 ...
#79. AWS Lambda + GitHub API + Google Sheet = 自動化簽到系統
而AWS Lambda 就是這樣的一個服務,你只要把你的程式碼放上去就好了,剩下的你都不用管,計費方式是程式的執行時間,可能是因為還在推廣期的關係,所以 ...
#80. google drive api費用 - 軟體兄弟
google drive api費用, 雖然可以享有首月免費使用服務的優惠(每月200美元),但以Google的角度,當然是希望您輕鬆上手後,漸漸習慣然後以支付其使用的費用。, ...
#81. Google API 1/4: 使用Google API Python Client 存取Google 服務
您知道如何使用官方的Google API Python Client 存取Google 服務,如Google Sheets、Gmail 郵件嗎?如何把Google API 授權重用和存放在Python 專案?
#82. 雲端運算服務– Amazon Web Services (AWS)
Amazon Web Services 提供可靠、可擴展並且經濟實惠的雲端運算服務。免費加入,只需按用量付費。
#83. Pricing | Google AppSheet
checkmark Advanced application and automation features · checkmark Connect to spreadsheets, cloud file storage, cloud databases, APIs, and SaaS services ...
#84. eSignature Plans and Pricing - DocuSign
Wet signatures vs electronic signatures · How to insert signature in google docs · How to put a signature on a word document · What is remote online ...
#85. ASUS WebStorage MOST FREE FEATURES. MOST ...
Superstore cloud printing, you don't need a flash drive, you can easily print when you walk into Superstore! You can also print photos into postcards and ...
#86. Google 利用規約 – ポリシーと規約 - Google Policies
Google は、こうした利用規約はできれば読みたくないというユーザーの心理 ... 告訴から生じる費用、弁護士費用を含め、あらゆる法的責任または費用が ...
#87. Mapbox pricing
Optimization API. Docs. Optimization API pricing guide ›. Plan a multi-stop driving, bicycling, and walking route with stops in the most efficient order.
#88. Google Jamboard:協作式數位白板
以採用Google Cloud 技術的Jamboard 應用程式鼓勵學生共同協作及參與課程學習。 ... 以及1 個壁掛支架),另需支付一次性管理和支援費用$600 美元(無須每年重複付費)。
#89. Pricing - Miro
including Google Drive, Slack, and more. Can I change the team size? Yes, you can change your team size at any point during your subscription.
#90. 台安診所立仁路97號
... Apa度假飯店東京灣幕張 · Api ms win crt runtime l1 1 0dll 下载 · Apk可以删除吗 ... Google chrome apk下载 · Google drive下载 · Google drive下载文件 ...
#91. Notion Pricing Plans
Blog · Guides & tutorials · Help center · Webinars · Template gallery · Community · What's new · Become an affiliate · Find a consultant · API docs ...
#92. Linux Cloud Hosting | Linode Pricing
Sign up with Google. or. GitHub Email. By providing your email address or using a single sign-on provider to create a Linode account, you agree to the ...
#93. Compare All Dropbox Plans
Not sure which Dropbox plan is right for you? Learn more about how our plans compare and choose the best individual or professional teams solution for you.
#94. Google Maps API 開始收費了?解析Google 地圖費用與規則!
與Maps JavaScript API 服務有關. Google Maps API 是使用WordPress 外掛建置Google 地圖時必須要申請的Google 服務項目之一,同時這 ...
#95. Pricing Overview - DigitalOcean
Simple, predictable pricing. Always know what you'll pay with monthly caps and flat pricing. Google Icon Sign up with Google · GitHub Icon ...
#96. Free Forever, Unlimited, & Business Plans - ClickUp™ Pricing
Collaborative Docs. Whiteboards. Real-Time Chat. Email in ClickUp. Kanban Boards. Sprint Management. Native Time Tracking. In-App Video Recording.
google drive api費用 在 [心得] Google Drive 遷移教學- 看板Free_box - 批踢踢實業坊 的推薦與評價
因為教育號的無限空間即將取消了,目前要轉移到有無限空間的地方就只有 Google 或 M
icrosoft 的付費方案。
如果是 Google Drive 遷移 Google Drive 的話,建議開免費 GCP 來轉移,速度快流量
免費。
如果是 Google Drive 遷移 Microsoft 的話,開 GCP 有 300 美金可以使用,但是傳輸
到 Microsoft 要算流量費,注意不要超過 300 美金。
第一篇 使用 rclone
事先準備
一。針對申請 GCP 的部份,要有Google帳號與信用卡,超過流量才會扣款。當然也可以
使用自己的電腦。
二。需略懂 Linux,會盡量寫的新手也能看的懂。
三。教學的 rclone 版本為 v1.54.1
第一步 申請 Google Cloud Platform (gcp)
https://cloud.google.com/gcp/getting-started/?hl=zh-tw
免費試用
運用 $300 美元的免費抵免額和 20 項以上的一律免費產品,開始在 Google Cloud 中建
構內容。
點 [免費開始使用] 來申請帳號
1.登入
繼續使用 Google Cloud Platform,沒有帳號的話請點 [建立帳戶]
這裡我們直接登入現有的 google 帳號密碼登入
2.免費試用 Google Cloud Platform
步驟 2 之 1
服務條款 需要都勾選才能按下 [繼續]
步驟 2 之 2
帳戶類型 -> 個人
稅務資訊 -> 未登記稅籍的個人
填好必要的資料後按下 [開始免費試用]
3.XXX,歡迎使用!
感謝您提出申請。我們會在免費試用期間提供價值 $300 美元的抵免額,讓您在未來 90
天內使用。請放心,除非您啟用了自動計費功能,否則即便抵免額用盡也不會產生費用。
按下 [我知道了]
申請的時候我收到銀行簡訊扣款40元,但應該只是 Google 驗證用不會請款。
計畫啟動方式
。如要完成免費試用期的申請程序,請務必提供信用卡資訊或其他付款方式來設定帳單帳
戶及驗證身分。請放心,設定帳單帳戶並不會啟動收費機制。除非您升級為付費帳戶並明
確啟用計費功能,否則我們不會收費。您可以在試用期間隨時升級為付費帳戶。如在 90
天試用期間升級帳戶,仍可繼續使用剩餘的抵免額。
計畫涵蓋範圍
。免費試用期的抵免額適用於所有 Google Cloud 資源,包括 Google 地圖平台用量,唯
下列作業除外:
。同時執行超過 8 個核心 (或虛擬 CPU)。
。將 GPU 新增至 VM 執行個體。
。要求提高配額。如要查看 Compute Engine 配額總覽,請參閱資源配額一文。
。依據 Windows Server 映像檔建立 VM 執行個體。
。您必須升級為付費帳戶,才能執行上述各項操作。
4.開啟免費伺服器
https://cloud.google.com/free?hl=zh-tw
每個月可使用 1 個 f1-micro 執行個體,可彈性擴充的高效能虛擬機器。
每個月可以在下列其中一個美國區域中使用 1 個非先占 f1-micro VM 執行個體:
奧勒岡州:us-west1
愛荷華州:us-central1
南卡羅來納州:us-east1
每月 30 GB HDD
左上角 導覽選單 -> Compute Engine -> VM 執行個體
第一次開啟的時候要先等他一下
正在啟用 Compute Engine,這項作業可能需要幾分鐘的時間才能完成。「Compute Engin
e」說明文件
可能不會自動更新,建議可以點 [執行個體範本] 再點回 [VM 執行個體]
當可以使用的時候 VM 執行個體 的 [建立] 就可以點選了
。新增 VM 執行個體 ->
名稱:自訂
區域:us-central1 , us-central1-a
。機器設定 -> 機器系列 -> 一般用途
系列:N1
機器類型:f1-micro
。開機磁碟 -> [變更] -> 公開映像檔 ->
作業系統:CentOS
版本:CentOS 7
開機磁碟類型:標準永久磁碟
大小(GB):30
。安全性 -> 受防護的 VM
啟用 vTPM,啟用完整性監控功能 我都是取消勾選
右上角可以看到 本月使用「f1-micro」執行個體的前 744 小時完全免費。
按下 [建立]
我們把外部IP記錄下來,這裡使用 115.234.0.1 當範例
連結 -> SSH 按一下 往下的箭頭 有 在瀏覽器視窗中開啟 等等的選項 ->
在瀏覽器視窗中開啟會 自動帶 key 進去
因為是比較簡單的教學,我們使用 [在瀏覽器視窗中開啟] 的功能。
但大多時間建議使用 [使用其他 SSH 用戶端]
https://cloud.google.com/compute/docs/instances/connecting-advanced#thirdparty
tools
並在 VPC網路 -> 防火牆 -> 限定 SSH 連線的來源位置
VPC網路 -> 外部 IP 位置 -> 類型 -> 改成 靜態
第二步 使用免費的 GCP CentOS 7 安裝 Rclone
在第一步的時候我們已經在 GCP 的 SSH 裡選擇 在瀏覽器視窗中開啟
接下來的步驟都在那個 SSH 的視窗裡執行
我們先安裝必要的 unzip 與 screen
輸入
sudo yum install -y unzip screen
他會開始自己安裝看到下面的字樣
Installed:
screen.x86_64 0:4.1.0-0.26.20120314git3c2946.el7 unzip.x8
6_64 0:6.0-21.el7
Complete!
就是安裝完成了
輸入
date
可以看到時間為 UTC
Tue Mar 9 06:35:15 UTC 2021
我們改成台灣時間比較好懂
輸入
sudo ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
date
可以看到時間為台灣的時間了
Tue Mar 9 14:35:21 CST 2021
接下來安裝 rclone 輸入
curl https://rclone.org/install.sh | sudo bash
看到下面的字樣
rclone v1.54.1 has successfully installed.
Now run "rclone config" for setup. Check https://rclone.org/docs/ for more det
ails.
就是安裝完成了
第三步 設定 rclone config
幾個方式都會寫第一個先
1.gd 個人盤 -> gd 個人盤
輸入
rclone config
新增的選項是
n) New remote
所以我們輸入 n
n/s/q> n
我們自訂名稱輸入 gd01
name> gd01
會列出目前有 42 個服務可以使用,我們要輸入 15 / Google Drive
Storage> 15
預設值按輸入鍵就好
client_id>
client_secret>
再來是權限通常來源我都是選 2 唯讀,目的地才選 1 最大權限
scope> 1
預設值按輸入鍵就好
root_folder_id>
service_account_file>
進階選項
Edit advanced config? (y/n)
y) Yes
n) No (default)
預設值按輸入鍵就好
y/n>
遠端設定請輸入 n
Remote config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> n
Please go to the following link: 後面的連結點一下,登入你資料來源的帳號然後在
「rclone」想要存取您的 Google 帳戶 按下 [允許]
將那一串帶登入的 key 複製下來, ctrl+v 到下面的 code>
Enter verification code>
接下來是問要不要設定 Team Drive?請輸入 n
Configure this as a Shared Drive (Team Drive)?
y) Yes
n) No (default)
y/n> n
確認資訊是否正確?預設值按輸入鍵就好
[gd01]
type = drive
scope = drive
token = {"access_token":"xxxxxx"}
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
可以看到 gd01 已經建立完畢,我們依上面的步驟按 n 再建立 gd02
Current remotes:
Name Type
==== ====
gd01 drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
如果 gd01 gd02 都建立完畢後,我們再按 q 離開 rclone config
Current remotes:
Name Type
==== ====
gd01 drive
gd02 drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
我們先輸入
screen -S gd01togd02
建立多重視窗,視窗關閉或是下次要進來時輸入
screen -x gd01togd02
要看有開啟那些多重視窗可以輸入
screen -ls
如果要一個一個資料夾單獨複製可以使用 copy ,如果是整個目錄都複製可以使用 sync
如果我要將 gd01 我的雲端硬碟 > Music 整個複製到 gd02 我的雲端硬碟裡指令可以這
樣輸入
rclone -vv sync gd01:Music gd02:Music
下列是傳輸畫面,碎檔多的話速度就會變慢,單一大檔案的話速度會比較快
2021/03/09 15:27:06 INFO :
Transferred: 1.580G / 212.132 GBytes, 1%, 27.301 MBytes/s, ETA 2h11m37s
Transferred: 20 / 4364, 0%
Elapsed time: 1m1.3s
Transferring:
* Magic/CD3/CD3.bin: 80% /738.661M, 6.792M/s, 21s
* Magic/CD1/CD1.bin: 62% /727.434M, 5.787M/s, 46s
* Magic/CD4/CD4.bin: 72% /645.177M, 6.422M/s, 27s
* Magic/CD2/CD2.bin: 13% /734.545M, 3.964M/s, 2m41s
如果你想先搬重要的資料夾而且資料夾有空格與非英文字的話,要用 "" 包起來,例如
rclone -vv copy gd01:Music/"我愛聽的歌 第一集" gd02:Music/"我愛聽的歌 第一集"
2.gd 共用雲端硬碟td -> gd 共用雲端硬碟td
剛剛的視窗已經用於 gdtogd 我們有開 screen 所以直接把視窗關閉就可以
我們回到左上角導覽選單 -> Compute Engine -> VM 執行個體 -> 連結 -> 在瀏覽器視
窗中開啟
我們輸入
screen -ls
可以看到 gd01togd02 的多重視窗還存在,隨時可以輸入 screen -x gd01togd02 登入
There is a screen on:
10366.gd01togd02 (Attached)
1 Socket in /var/run/screen/S-dcshare.
不過這一次我們要設定 td 所以輸入
screen -S gd02tdtogd01td
一樣輸入
rclone config
e/n/d/r/c/s/q> n
name> gd01td
Storage> 15
client_id>
client_secret>
scope> 1
root_folder_id>
service_account_file>
y/n>
y/n> n
登入 gd01 帳號
Enter verification code> ctrl+v 貼上 code
Team Drive 這裡選 y
Configure this as a Shared Drive (Team Drive)?
y) Yes
n) No (default)
y/n> y
他會列出你目前所有的 Team Drive ,我們這次範例輸入 2
Fetching Shared Drive list...
Choose a number from below, or type in your own value
1 / ttest
\ "0Axxxx"
2 / test
\ "0Axxx"
Enter a Shared Drive ID> 2
y/e/d>
就能看到 gd01td 建立完成囉~
Current remotes:
Name Type
==== ====
gd01 drive
gd01td drive
gd02 drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
我們一樣輸入 n 建立 gd02td 前面步驟都相同
Configure this as a Shared Drive (Team Drive)?
y) Yes
n) No (default)
y/n> y
Fetching Shared Drive list...
Choose a number from below, or type in your own value
1 / abc001
\ "0Axxx"
Enter a Shared Drive ID> 1
y/e/d>
就能看到 gd02td 建立完成囉~
Current remotes:
Name Type
==== ====
gd01 drive
gd01td drive
gd02 drive
gd02td drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
我們這次只要複製其中一個資料夾的話可以這樣下,目錄名稱不需要帶 Team Drive 的名
稱,因為我們已經設定到 Team Drive 資料夾內
rclone -vv copy gd02td:Music/"我愛聽的歌 第二集" gd01td:Music/"我愛聽的歌 第二
集"
就開始複製囉~這次範例是4GB 一個檔案,可以看到速率就飆上去了~
Transferred: 19.215G / 69.114 GBytes, 28%, 82.048 MBytes/s, ETA 10m22s
Transferred: 4 / 18, 22%
Elapsed time: 4m0.7s
Transferring:
* part04.rar: 25% /3.905G, 20.265M/s, 2m26s
* part05.rar: 23% /3.905G, 20.369M/s, 2m30s
* part06.rar: 24% /3.905G, 21.818M/s, 2m18s
* part07.rar: 18% /3.905G, 17.719M/s, 3m3s
剩下要怎麼使用就自由發揮囉~
放了一天來看因為 SSH 允許所有人連入,只是要使用 key 才能登入。
輸入
sudo lastb
可以看到有人嘗試透過帳密登入但是都被擋下來了。
support ssh:notty 141.98.80.85 Wed Mar 10 08:20 - 08:20 (00:00)
guest ssh:notty 141.98.80.83 Wed Mar 10 08:20 - 08:20 (00:00)
ubnt ssh:notty 141.98.80.82 Wed Mar 10 08:20 - 08:20 (00:00)
guest ssh:notty 141.98.80.71 Wed Mar 10 08:20 - 08:20 (00:00)
test ssh:notty 141.98.80.69 Wed Mar 10 08:20 - 08:20 (00:00)
admin ssh:notty 141.98.80.82 Wed Mar 10 08:20 - 08:20 (00:00)
user ssh:notty 141.98.80.71 Wed Mar 10 08:20 - 08:20 (00:00)
admin ssh:notty 141.98.80.70 Wed Mar 10 08:20 - 08:20 (00:00)
admin ssh:notty 141.98.80.69 Wed Mar 10 08:20 - 08:20 (00:00)
uploader ssh:notty c-73-208-94-123. Wed Mar 10 06:31 - 06:31 (00:00)
pi ssh:notty 93.51.127.23 Wed Mar 10 06:29 - 06:29 (00:00)
ubnt ssh:notty 195.54.160.250 Wed Mar 10 03:25 - 03:25 (00:00)
admin ssh:notty 185.220.102.4 Wed Mar 10 00:37 - 00:37 (00:00)
admin ssh:notty 209.127.17.242 Wed Mar 10 00:37 - 00:37 (00:00)
admin ssh:notty 23.129.64.210 Wed Mar 10 00:37 - 00:37 (00:00)
admin ssh:notty 185.220.101.194 Wed Mar 10 00:37 - 00:37 (00:00)
odoo ssh:notty 202.28.194.163 Wed Mar 10 00:01 - 00:01 (00:00)
ubnt ssh:notty 31.210.22.2 Tue Mar 9 20:55 - 20:55 (00:00)
testuser ssh:notty 45.93.201.193 Tue Mar 9 18:55 - 18:55 (00:00)
zyfwp ssh:notty 195.54.160.250 Tue Mar 9 15:29 - 15:29 (00:00)
輸入
last
可以看到成功登入的使用者都是我自己 與 screen
test pts/2 35.235.241.16 Wed Mar 10 10:58 still logged in
test pts/1 35.235.240.5 Wed Mar 10 07:02 - 07:57 (00:55)
test pts/1 35.235.240.2 Wed Mar 10 01:21 - 02:08 (00:46)
test pts/3 :pts/2:S.0 Tue Mar 9 15:44 - 17:29 (01:45)
test pts/0 :pts/1:S.0 Tue Mar 9 15:23 - 15:46 (00:23)
test pts/1 35.235.241.18 Tue Mar 9 14:13 - 15:46 (01:32)
test pts/0 35.235.241.19 Tue Mar 9 14:05 - 14:27 (00:22)
reboot system boot 3.10.0-1160.15.2 Tue Mar 9 14:01 - 10:58 (20:56)
用瀏覽器登入的 IP 落在 35.235.241.0/24 與 35.235.240.0/24
https://cloud.google.com/iap/docs/using-tcp-forwarding#console
這裡寫著 35.235.240.0/20 我們只開這個區段 SSH 連入就好
左上角 導覽選單 -> 網路 -> VPC 網路 -> 防火牆
點一下 [default-allow-ssh] -> 編輯 -> 我們把 0.0.0.0/0 刪除
增加 35.235.240.0/20 -> 儲存
第二篇 使用 rclone + --drive-server-side-across-configs=true
回到 VM 執行個體 -> 連結 -> SSH -> 在瀏覽器視窗開啟
PTT 網友 LeisCat 提供 --drive-server-side-across-configs 這個參數的使用範例
在 Server 端傳輸檔案,不會使用到 Client 流量
首先我先將檔案複製一份來測試
rclone -vv copy --drive-server-side-across-configs gd01:test gd01:test2
可以看到是 server-side copy
2021/03/10 11:32:29 INFO : xxxxx: Copied (server-side copy)
而且速度很快
Transferred: 206.508G / 1.901 TBytes, 11%, 1.739 GBytes/s, ETA 16m40s
Transferred: 157 / 7994, 2%
Elapsed time: 2m1.0s
不過複製到 1.2TB 時限流了
Transferred: 1.219T / 1.901 TBytes, 64%, 322.791 MBytes/s, ETA 36m56s
Transferred: 6007 / 7994, 75%
Elapsed time: 1h6m1.0s
2021/03/10 12:36:33 DEBUG : pacer: low level retry 10/10 (error googleapi: Err
or 403: User rate limit exceeded., userRateLimitExceeded)
2021/03/10 12:36:33 DEBUG : pacer: Rate limited, increasing sleep to 16.575937
443s
我們就先用這一份 1.2 TB 的資料來做測試吧。
首先 gd01 的資料在 [我的雲端硬碟] -> [test2] 裡,我們要轉移到 gd02 [共用雲端硬
碟] -> [test2] 裡。
gd02 -> 共用雲端硬碟 -> test2 -> 管理成員 -> 將你 gd01 的帳號輸入並設定為 [管
理員] -> [共用]
要與機構外的使用者共用嗎?
共用對象 [email protected] 不在這個項目所屬的 Google Workspace 機構中。
選擇 [一律共用]
到 gd01 -> 共用雲端硬碟 -> test2 可以看到擁有者是 gd02 的組織
接下來我們建立 gd01tdtest2
rclone config
e/n/d/r/c/s/q> n
name> gd01tdtest2
Storage> 15
client_id>
client_secret>
scope> 1
root_folder_id>
service_account_file>
y/n>
y/n> n
按連結登入 gd01 帳號 -> 允許 -> 複製 code
Enter verification code> 貼上複製的 code
Configure this as a Shared Drive (Team Drive)?
y) Yes
n) No (default)
y/n> y
Fetching Shared Drive list...
Choose a number from below, or type in your own value
1 / test
\ "0Axxx"
2 / test2
\ "0Axxx"
Enter a Shared Drive ID> 2
y/e/d>
e/n/d/r/c/s/q> q
接下來我們將 gd01 test2 移動到 gd01 Team Drive test2 裡的 test2 目錄,擁有者是
gd02 的網域不是 gd01 的。
rclone -vv move --drive-server-side-across-configs gd01:test2 gd01tdtest2
:test2
可以看到是 server-side
2021/03/10 15:03:02 INFO : xxxxx: Moved (server-side)
2021/03/10 15:03:03 INFO :
Transferred: 0 / 1.139 TBytes, 0%, 0 Bytes/s, ETA -
Checks: 80 / 84, 95%
Renamed: 80
Transferred: 0 / 5940, 0%
Elapsed time: 1m0.8s
等他跑完就完成將 gd01 [我的雲端硬碟] 搬移到 gd02 擁有者的 [共用雲端硬碟] 裡了
。
第三篇 使用 rclone + --drive-server-side-across-configs + sa(Service Accounts)
我想使用 copy 的方式轉移,不想使用 move 的方式轉移,但是一個帳號有一天上傳 750
GB 的限制該如何突破?
Rclone 750G自動換號– AutoRclone使用教程
https://gsuitems.com/index.php/archives/13/
https://github.com/xyou365/AutoRclone
第一步 安裝必要軟體
我們依我們從第一篇開始建立的 GCP centos7 來教學
回到 ssh 視窗
安裝 git python36 輸入
screen -S testsa
sudo yum install -y git python36
看到 Complete! 資料就是安裝完成囉~
然後從 Github 下載代碼並安裝相關 Python 依賴包,輸入
sudo git clone https://github.com/xyou365/AutoRclone && cd AutoRclone && sudo
pip3 install -r requirements.txt
安裝完畢後到這個網站
https://developers.google.com/drive/api/v3/quickstart/python
按下 [Enable the Drive API] 此時需要登入 google 帳號請登入 GCP 的帳號,登入完
畢後再按一次 [Enable the Drive API]
Enter new project name:自訂我們輸入satest
協議請選 Yes
按下 [NEXT]
Confi your OAuth client
預設的 Desktop app 即可
按下 [CREATE]
You're all set!
You're ready to start developing!
按下 [DOWNLOAD CLIENT CONFIGURATION]
將下載的 credentials.json 存到硬碟裡
利用右上角的齒輪 -> 上傳檔案 -> 將剛剛下載的 credentials.json 上傳
檔案是傳在 user home 裡,所以輸入
cd ~/AutoRclone
sudo mv ../credentials.json ./
ll
可以看到我們需要的 credentials.json 已經建立完畢
total 100
drwxr-xr-x. 2 root root 19 Mar 11 15:38 accounts
-rw-r--r--. 1 root root 2821 Mar 11 15:38 add_to_google_group.py
-rw-r--r--. 1 root root 3122 Mar 11 15:38 add_to_team_drive.py
-rw-r--r--. 1 root root 37075 Mar 11 15:38 AutoRclone.jpg
drwxr-xr-x. 2 root root 43 Mar 11 15:38 credentials
-rw-rw-r--. 1 dcshare dcshare 430 Mar 12 16:48 credentials.json
-rw-r--r--. 1 root root 13310 Mar 11 15:38 gen_sa_accounts.py
-rw-r--r--. 1 root root 18166 Mar 11 15:38 rclone_sa_magic.py
-rw-r--r--. 1 root root 7377 Mar 11 15:38 Readme.md
-rw-r--r--. 1 root root 93 Mar 11 15:38 requirements.txt
第二步 建立 Service Accounts 帳號
我們只需要建立一個項目,建立100個 Service Accounts 一天 75TB 就足夠了。
輸入
sudo python3 gen_sa_accounts.py --quick-setup 1 --new-only
如果你遇到這個錯誤
Traceback (most recent call last):
File "gen_sa_accounts.py", line 323, in <module> download_keys=args.download
_keys
File "gen_sa_accounts.py", line 161, in serviceaccountfactory
proj_id = loads(open(credentials,'r').read())['installed']['project_id']
File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quote
s: line 1 column 2 (char 1
代表你 credentials.json 不是用上傳的方式,格式跑掉了~用這個方式傳入 sudo bash
-c "echo '[ctrl]+[v]' > credentials.json" 是不行的喔!
點一下 Please visit this URL to authorize this application: 後面的連結。
使用 Google 帳戶登入 -> 我們剛剛用 GCP 的帳號登入這裡相同 -> 允許 -> 複製授權
碼
貼到 Enter the authorization code: 裡
如果出現下列字樣
Service Usage API has not been used in project 123442485074 before or it is di
sabled. Enable it by visiting https://console.developers.google.com/apis/api/s
erviceusage.googleapis.com/overview?project=xxxxx then retry. If you enabled t
his API recently, wait a few minutes for the action to propagate to our system
s and retry.
Press Enter to retry.
請點一下他給的連結記得登入的帳號是 GCP 的帳號才看的到。
Service Usage API -> 啟用
在建立的時候會出現錯誤訊息
<HttpError 403 when requesting https://iam.googleapis.com/v1/projects/xxxxxxxx
/serviceAccounts?pageSize=100&alt=json returned "Identity and Access Managemen
t (IAM) API has not been used in project 379544142899 before or it is disabled
. Enable it by visiting https://console.developers.google.com/apis/api/iam.goo
gleapis.com/overview?project=xxxxx then retry. If you enabled this API recentl
y, wait a few minutes for the action to propagate to our systems and retry.".
我們點一下那個連結
https://console.developers.google.com/apis/api/iam.googleapis.com/overview?pro
ject=xxxxx
Identity and Access Management (IAM) API -> 啟用
重新輸入
sudo python3 gen_sa_accounts.py --quick-setup 1 --new-only
給他一點時間建立帳號
creat projects: 1
Creating 1 projects
Enabling services
Creating accounts in saf-18sxxxxx
Downloading keys from saf-18sxxxxx
輸入
cd ~/AutoRclone/accounts
ll
可以看到一堆建立好的 json 檔
批量提取 Service Accounts 參考
https://www.uud.me/qiwenzalun/autorclone-gclone.html/comment-page-1
輸入
cat ~/AutoRclone/accounts/*.json | grep "client_email" | awk '{print $2}'| tr
-d ',"' | sed 'N;N;N;N;N;N;N;N;N;/^$/d;G' > ~/email.txt
底下的 user 請取代為你的使用者名稱
這樣在 /home/user 裡就建立好 accounts 裡的 email 清單並且 10 個分隔。
右上角 齒輪 -> 下載檔案 -> 完整檔案路徑: /home/user/email.txt
確定下載 "email.txt" -> 另存新檔
第三步 將 Service Accounts 帳號加入 Group 方便管理
對於普通 Google 帳號
直接建立一個 Google Group 然後手動將 service accounts 對應的信箱一個一個加進去
,但每次只能加10個,每24小時只能加100個。
https://groups.google.com/
網路論壇 -> 建立群組 -> 步驟 1 (共 3 步) 輸入群組資訊
群組名稱:dcsatest20210313
群組電子郵件:會自動帶入我們填的群組名稱
信箱的部分改為 @googlegroups.com
建立外部群組
-> 下一個
步驟 2 (共 3 步) -> 選擇隱私權設定
誰可以搜尋群組 -> 群組成員
誰可以加入群組 -> 所有人皆可加入 我們加完後再來改
誰可以查看會話群組 -> 版主
誰可以張貼內容 -> 版主
誰可以查看成員 -> 版主
-> 下一個
步驟 3 (共 3 步) -> 新增成員
群組成員 -> 把 email.txt 前 10 個填進去
訂閱 -> 不要接收電子郵件
預設開啟 -> 直接新增成員,將成員直接新增到群組
-> 建立群組
須經人機驗證 (Captcha) -> 我不是機器人 -> 建立群組 -> 前往群組 -> 成員 -> 成員
-> 新增成員
把 email.txt 剩下的 9組 10 個帳號陸續 新增成員
都加完後 -> 群組設定 -> 誰可以加入群組 -> 僅受邀的使用者 -> 儲存變更
第四步 將來源與目的資料夾ID 加入群組信箱 [email protected] 的
權限
gd02 -> 共用雲端硬碟 -> test2 -> 管理成員 -> 將你群組信箱 dcsatest20210313@goo
glegroups.com 的帳號輸入並設定為 [管理員] -> [共用]
資料來源的資料夾也要加,如果來源不是 Team Drive 也可以開共用把群組信箱加為檢視
者
第五步 開始複製遇到750GB 流量上限自動切換帳號
複製的用法為 SourceID=來源ID DestinationID=目的ID DestinationPathName=目的資料
夾名稱 後面的 100 是我們建立的帳號數
python3 rclone_sa_magic.py -s SourceID -d DestinationID -dp DestinationPathNam
e -b 1 -e 100
SourceID 為你資料來源的網址 folders/ 後面那一段,我們假設為 hijklm
https://drive.google.com/drive/u/2/folders/hijklm
DestinationID 為你資料目的網址,我們用團隊盤 folders/後面這串ID 我們假如是 abc
defg
https://drive.google.com/drive/u/1/folders/abcdefg
輸入
cd ~/AutoRclone
sudo python3 rclone_sa_magic.py -s hijklm -d abcdefg -dp abcdefg -b 1 -e 100
就會如下開始開始複製囉
rclone is detected: /bin/rclone
generating rclone config file.
rclone config file generated.
Start: 07:02:58
rclone --config ./rclone.conf copy --drive-server-side-across-configs --rc --r
c-addr="localhost:5572" -vv --ignore-existing --tpslimit 3 --transfers 3 --dri
ve-chunk-size 32M --drive-acknowledge-abuse --log-file=log_rclone.txt "src001:
" "dst001:bd001" &
>> Let us go dst001: 07:02:58
dst001: 226GB Done @ 3245.456424MB/s | checks: 0 files
假如遇到
Failed to rc: connection failed: Post "https://localhost:5572/core/pid": dial t
cp [::1]:5572: connect: connection refused
可能是權限或是路徑的關係
看來源
rclone --config rclone.conf size --disable ListR src001:
沒資料
Total objects: 0
Total size: 0 Bytes (0 Bytes)
有可能是新增的共用權限還沒有完全同步完畢,資料越多同步需要越久。
再輸入一次
rclone --config rclone.conf size --disable ListR src001:
權限有慢慢增加了
Total objects: 873
Total size: 3.192 TBytes (3509160308933 Bytes)
再次輸入
cd ~/AutoRclone
sudo python3 rclone_sa_magic.py -s hijklm -d abcdefg -dp abcdefg -b 1 -e 100
當複製完成後做一下檢查輸入
rclone --config rclone.conf size --disable ListR src001:來源路徑
rclone --config rclone.conf size --disable ListR dst001:目標路徑
如果目標路徑檔案比較少那就重新複製一次
如果目標路徑檔案比較多那就去掉重複資料
rclone --config rclone.conf dedupe src001:來源路徑
rclone --config rclone.conf dedupe dst001:目標路徑
複製本地端的語法如下
cd ~/AutoRclone
sudo python3 rclone_sa_magic.py -sp YourLocalPath -d DestinationID -dp Destina
tionPathName -b 1 -e 100
之後大家再努力搬資料吧~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.35.54 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Free_box/M.1615280338.A.6AB.html
※ 編輯: iamdco (1.200.170.216 臺灣), 03/11/2021 12:31:06
※ 編輯: iamdco (1.200.98.177 臺灣), 03/13/2021 07:44:10
... <看更多>