設定 DVC Remote
在這個編輯器練習中,你會實作設定與修改 DVC remotes 的流程,用來安全地儲存與分散你的資料集。DVC remotes 讓你能夠依照適當的版本來儲存與分享資料。我們已經為本題初始化好 DVC。你的重點只在於在本機檔案系統環境中設定 DVC remotes。
加入預設 DVC remote 的語法為
dvc remote add --local <remote_name> </path/to/folder>
其中 --local 表示這個 DVC remote 指向本機位置。
當要修改 DVC remote 的位置時,可以使用下列指令:
dvc remote modify --local <remote_name> url </path/to/new-location>
請注意我們是修改設定檔中的 url 鍵,該鍵儲存了位置資訊。
本練習屬於課程
