curl通过webdav操作alist

创建目录:
 

url2023=20230828;

curl -v -u "admin":"这里是密码" -X MKCOL "http://127.0.0.1:5244/dav/my189tianyi/${url2023}/"

上传文件:

curl -v -u "admin":"这里是密码" -T /tmp/aa.json "http://127.0.0.1:5244/my189tianyi/"

参考资料:

https://www.cnblogs.com/sky-cheng/p/16546837.htmlicon-default.png?t=N6B9https://www.cnblogs.com/sky-cheng/p/16546837.html

你可能感兴趣的:(运维,linux)