Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qupload2 忽略重复文件问题 #295

Open
klgd opened this issue Dec 21, 2020 · 3 comments
Open

qupload2 忽略重复文件问题 #295

klgd opened this issue Dec 21, 2020 · 3 comments

Comments

@klgd
Copy link

klgd commented Dec 21, 2020

问题描述

我已经加了参数overwrite rescan-local,可是重复文件还是被忽略了,没有上传

重现步骤

以下命令,h5/demo中的文件删除后,再次上传
结果就是空间里的文件已经被删除了,但是本地文件却被忽略没有上传

qshell listbucket bucket  --prefix h5/demo/ | awk -F '\t' '{print $1}' > todelete.txt
qshell batchdelete bucket  --force -i todelete.txt

qshell qupload2 --overwrite --rescan-local \
    --src-dir=/data/demo/dir \
    --bucket=bucket \
    --key-prefix=h5/demo/ \
    --skip-file-prefixes=index.html,favicon.ico

期望结果?

  • 本地重复文件需要上传

实际结果?

  • 本地文件被忽略没有上传

错误日志/截图/配置参数

日志

2020/12/21 09:03:23.849 [I]  -------------Upload Result--------------
2020/12/21 09:03:23.849 [I]                Total:        24
2020/12/21 09:03:23.849 [I]              Success:         0
2020/12/21 09:03:23.849 [I]              Failure:         0
2020/12/21 09:03:23.849 [I]         NotOverwrite:         0
2020/12/21 09:03:23.849 [I]              Skipped:        24
2020/12/21 09:03:23.849 [I]             Duration:    12.144066ms
2020/12/21 09:03:23.849 [I]  ----------------------------------------

相关环境信息

  • 操作系统:centos6.5
  • qshell版本: 2.4.2
@gdabs
Copy link

gdabs commented Mar 8, 2021

你解决了覆盖重名文件上传的问题了么

@coderlfm
Copy link

同问

@klgd
Copy link
Author

klgd commented Mar 24, 2022

同问
你解决了覆盖重名文件上传的问题了么

本身命令没找到什么好的解决办法,我只能是在执行上面的命令前,把.qshell目录删了,然后再去执行上传

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants