Git Product home page Git Product logo

Comments (8)

kkuai avatar kkuai commented on August 18, 2024

您好,您能把问题说的更详细点吗,谢谢!

from ossutil.

yufengshizhe avatar yufengshizhe commented on August 18, 2024

您好,您能把问题说的更详细点吗,谢谢!

现在实际使用情况来看我们经常上传数据到阿里云一看就是0字节
ossutil对于路径中软连接的支持太差了
能不能参考rsync cp之类的加一个L参数强制拷贝软连接的文件本身

from ossutil.

kkuai avatar kkuai commented on August 18, 2024

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.

yufengshizhe avatar yufengshizhe commented on August 18, 2024

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.

kkuai avatar kkuai commented on August 18, 2024

[[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.

yufengshizhe avatar yufengshizhe commented on August 18, 2024

[[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.

kkuai avatar kkuai commented on August 18, 2024

是的,不支持目录

from ossutil.

yufengshizhe avatar yufengshizhe commented on August 18, 2024

是的,不支持目录

目录支持啥时候提上日程

from ossutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.