Comments (8)
您好,您能把问题说的更详细点吗,谢谢!
from ossutil.
您好,您能把问题说的更详细点吗,谢谢!
现在实际使用情况来看我们经常上传数据到阿里云一看就是0字节
ossutil对于路径中软连接的支持太差了
能不能参考rsync cp之类的加一个L参数强制拷贝软连接的文件本身
from ossutil.
https://help.aliyun.com/document_detail/50561.html?spm=a2c4g.11186623.6.1298.6d926f09dIgKNt
“若上传目标对象为符号软链接,且指向本地文件夹,则使用 cp 命令上传时,应当在软链接加上正斜线,比如 ./ossutil cp -r symbolic_link/ oss://bucket/path“
上面命令是可以将链接路径上传到oss的,不知道是否满足您的基本需求
from ossutil.
https://help.aliyun.com/document_detail/50561.html?spm=a2c4g.11186623.6.1298.6d926f09dIgKNt
“若上传目标对象为符号软链接,且指向本地文件夹,则使用 cp 命令上传时,应当在软链接加上正斜线,比如 ./ossutil cp -r symbolic_link/ oss://bucket/path“
上面命令是可以将链接路径上传到oss的,不知道是否满足您的基本需求
举个例子吧
我当前路径为/titan2/yuanwuzhou/01.zhezhongProject/01.data
在01.data下有许多文件这些文件都是软连接过来的
我用ossutil cp -r -u /titan2/yuanwuzhou/01.zhezhongProject/01.data oss://titan2/
执行之后oss://titan2/上都是0字节的文件
from ossutil.
[[email protected] /home/taowei.wtw/ossutil_tool/link_root]
$ls -al
total 12
drwxr-xr-x 3 taowei.wtw users 4096 Jan 15 19:38 .
drwxr-xr-x 9 taowei.wtw users 4096 Mar 18 16:31 ..
drwxr-xr-x 2 taowei.wtw users 4096 Feb 15 15:33 file_img
lrwxrwxrwx 1 taowei.wtw users 9 Jan 15 18:02 link_img -> file_img/
lrwxrwxrwx 1 taowei.wtw users 23 Jan 15 18:08 link_img1 -> ./file_img/photos.tar.z
lrwxrwxrwx 1 taowei.wtw users 25 Jan 15 19:38 link_img2 -> ../link_root1/testlog.txt
如上,我link_root上有一些文件和链接文件,我执行命令
./ossutil64 cp ./link_root oss://wangtw-bbr-shenzhen/ -r
最后只有link_img 为0,因为它指向的是一个目录,其他的link_img1和link_img2都把链接指向的文件上传成功了,和你描述的不一致,我是最新的1.5.0的版本,linux平台下运行。
from ossutil.
[[email protected] /home/taowei.wtw/ossutil_tool/link_root]
$ls -al
total 12
drwxr-xr-x 3 taowei.wtw users 4096 Jan 15 19:38 .
drwxr-xr-x 9 taowei.wtw users 4096 Mar 18 16:31 ..
drwxr-xr-x 2 taowei.wtw users 4096 Feb 15 15:33 file_img
lrwxrwxrwx 1 taowei.wtw users 9 Jan 15 18:02 link_img -> file_img/
lrwxrwxrwx 1 taowei.wtw users 23 Jan 15 18:08 link_img1 -> ./file_img/photos.tar.z
lrwxrwxrwx 1 taowei.wtw users 25 Jan 15 19:38 link_img2 -> ../link_root1/testlog.txt如上,我link_root上有一些文件和链接文件,我执行命令
./ossutil64 cp ./link_root oss://wangtw-bbr-shenzhen/ -r最后只有link_img 为0,因为它指向的是一个目录,其他的link_img1和link_img2都把链接指向的文件上传成功了,和你描述的不一致,我是最新的1.5.0的版本,linux平台下运行。
那就是链接不支持目录?
我下面也是链接的目录 1.4.3版本
from ossutil.
是的,不支持目录
from ossutil.
是的,不支持目录
目录支持啥时候提上日程
from ossutil.
Related Issues (20)
- v1.7.7 下载后 编译不过去,依赖的 oss 没有找到 2.1.11版本 HOT 1
- ./ossutil config 生成的配置文件为明文,不安全
- ossutil cp 依次上传多个文件,会导致第二个文件开始没有进度
- AkService无法获取AccessKey HOT 1
- 支持设置umask
- loglevel如何直接输出到终端,而不是打印到一个日志文件ossutil.log? HOT 1
- sign命令支持--oss-process参数
- FinishWithError: dial tcp: lookup xxxxx on xxxxx: no such host, File=dist/xxxx.js HOT 1
- 建议通过 Homebrew 分发 HOT 2
- cp的时候如何能获取所有文件的上传时间戳
- 希望sync命令能够增加参数使能够同步文件的修改时间 HOT 2
- Please add option to hide the last line `num(s) elapsed` HOT 1
- update go version to 1.17.11 or 1.18.3 or higher because of CVE-2022-30580 HOT 1
- /opt/ossutil64 sync --snapshot-path /opt/oss-snapshot2 使用快照 同步了几天后出现 resource temporarily unavailable HOT 1
- Arm版本用不了 HOT 2
- win11配置提示此应用无法在你的电脑上运行 HOT 1
- OSSUtil怎么没有支持mac Apple芯片? HOT 2
- ossutils update
- Update go runtime version to 1.19.6-2 because of CVE-2022-41725, CVE-2022-41724, CVE-2022-41723, CVE-2022-41722 HOT 1
- ossutil上传文件报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ossutil.