跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • rclone sync和COPY有什么区别呢
未分類
24 10 月 2020

rclone sync和COPY有什么区别呢

soey 大佬有话说 :

rclone sync和COPY有什么区别呢

看了下这两个命令都可以同步本地文件到远程
这两个命令会不会删除本地的文件?
备份的话哪个比较的好,用完sync可以再用 copy 同步一次吗?

kuk 大佬有话说 :

corta 大佬有话说 : 2020-10-24 17:51
cpoy sync都 不是 按大小/修改时间/MD5 判断文件的,盲猜按是文件名,备份的话要找别的支持历史版本的玩意 …

rclone copy
Copy files from source to dest, skipping already copied.
Synopsis
Copy the source to the destination. Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. Doesn’t delete files from the destination.
https://rclone.org/commands/rclone_copy/

rclone sync
Make source and dest identical, modifying destination only.
Synopsis
Sync the source to the destination, changing the destination only. Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. Destination is updated to match source, including deleting files if necessary.
https://rclone.org/commands/rclone_sync/

建议多看看官方文档

wvps 大佬有话说 :

mark一下,同问,一会过来看看

corta 大佬有话说 :

A copy B发现B中没有的A中有的文件,从A复制到B
A sync B找出AB中不同的文件,B有的A没有的删,A有的B没有的复制,完成后B中的文件和A中的一致

qianmianyao 大佬有话说 :

一个是增量同步,一个是整个复制

liugogal 大佬有话说 :

区别就是会不会删除远程的文件

corta 大佬有话说 :

cpoy sync都 不是 按大小/修改时间/MD5 判断文件的,盲猜按是文件名,备份的话要找别的支持历史版本的玩意(OD/GD)否则没啥意义

秋上书 大佬有话说 :

我也要了解了解 这个增量备份了 用处真的大

wvps 大佬有话说 :

kuk 大佬有话说 : 2020-10-24 18:17
建议多看看官方文档

很清晰了,多谢!~~

vanilla 大佬有话说 :

copy只复制缺少的
sync还会检查源头没有的同时删掉目的地的

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具