BaiduPCS-Go icon indicating copy to clipboard operation
BaiduPCS-Go copied to clipboard

能否实现增量upload

Open jimbos opened this issue 3 years ago • 9 comments

jimbos avatar Oct 28 '21 03:10 jimbos

呃……能说详细点儿不?

发自我的iPhone

在 2021年10月28日,上午11:03,jimbos @.***> 写道:

 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

qjfoidnh avatar Oct 28 '21 04:10 qjfoidnh

就是说,假如我今天上传了一个目录,过几天,我改了里面的内容,想再上传,这时就要用增量更新了,不必要全上传,再比对啥的。

jimbos avatar Oct 28 '21 09:10 jimbos

呃……能说详细点儿不? 发自我的iPhone 在 2021年10月28日,上午11:03,jimbos @.***> 写道:  — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Hi 这回清楚了没?

jimbos avatar Nov 01 '21 02:11 jimbos

啊理解

发自我的iPhone

在 2021年11月1日,上午10:19,jimbos @.***> 写道:

 呃……能说详细点儿不? 发自我的iPhone … 在 2021年10月28日,上午11:03,jimbos @.***> 写道:  — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Hi 这回清楚了没?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

qjfoidnh avatar Nov 01 '21 03:11 qjfoidnh

上传时可以选择对同名文件的处理策略,选择跳过即可实现类似效果。 不过这种对于文件名不变,更改内容那种是没有办法的。但上传前的秒传检测也会检测出之前传过的文件,不会再次上传

qjfoidnh avatar Dec 28 '21 15:12 qjfoidnh

加个md5检测可以解决吗。这个功能比较有用。对于经常要更新同一文件内的内容的人来说

kpking avatar Jan 12 '22 01:01 kpking

加个md5检测可以解决吗。这个功能比较有用。对于经常要更新同一文件内的内容的人来说

上传前默认会先检测秒传,这个环节其实就有md5检测,文件内容不变的话会直接秒传

qjfoidnh avatar Jan 12 '22 09:01 qjfoidnh

 是的,用MD5可以实现,但是要在命令中加入选项支持这种同步。

On 12/01/2022 17:33, qjfoidnh wrote:

加个md5检测可以解决吗。这个功能比较有用。对于经常要更新同一文件内的内容的人来说

上传前默认会先检测秒传,这个环节其实就有md5检测,文件内容不变的话会直接秒传

— Reply to this email directly, view it on GitHub https://github.com/qjfoidnh/BaiduPCS-Go/issues/144#issuecomment-1010835726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6LZ2CGQ3HRFVJGN4UOBOLUVVDF3ANCNFSM5G3ZFINA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

jimbos avatar Jan 14 '22 02:01 jimbos

感觉这个功能可以新搞一个sync命令,类似于linux上的rsync命令,可以实现各种同步功能,比如本地同步远程,同步本地。增量同步啥的,具体应该可以通过比较md5,修改日期来实现

123485k avatar Jan 19 '22 14:01 123485k