<分享> 轉移資料時電腦死機/斷電?不想從頭拷貝? | Rclone
-
自行搜尋:
RcloneRclone是終端工具,如果不確定你在做什麼請勿嘗試
難度: ★☆☆☆☆
所需知識:- 對於系統資料夾有一定的了解 (directory structure),會用cd
前言
“直接copy不行嗎?” “重新拷貝就好拉”
明明有如此簡單的方案,為什麼需要使用到Rclone?
想想如果在換硬盤的過程中,已經拷貝到了10tb,此時突然斷電
這代表這10tb的資料裡,可能有一兩個檔案是損壞的 (也就是拷貝的檔案大小會不如原檔)
然而作業系統內拷貝時也沒有只覆蓋大小不一樣的文件的選項
往往這時候只能重新來過教學
Windows用戶:下載,終端內cd到解壓後的資料夾裡(rclone.exe)所在地,或是把rclone.exe移動到PATH以內的地方
Linux/MacOS用戶:可用系統內建package manager下載,或是和Windows一樣,下載完後cd指令:
rclone copy <source> <dest> --size-only --progress-
Windows用戶須打rclone.exe
-
source是想要拷貝的起點,dest是目的地
-
Windows使用
\,Linux/MacOS/Unix使用/ -
--size-only也是這次教學的目的,在拷貝過程中,只有相同檔名但大小不同的檔案會被覆蓋 -
--progress顯示進度,不然沒完沒了
後記
在斷電的話,打開終端,執行一樣的指令就可以繼續拉
不用考來考去還要重考,跟學生一樣
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
註冊 登入