Skip to content

[Bug] WebDAV backup fails and stops because mkdir reports an error even when the directory already exists #11034

@Xalaok

Description

@Xalaok

Contact Information

No response

1Panel Version

2.0.13

Problem Description

将WebDAV备份设置为已存在目录,备份时依然mkdir导致报错终止备份

Steps to Reproduce

WebDAV备份目录设置为已存在目录

The expected correct result

判断目录是否存在

Related log output

2025/11/23 01:00:05 执行 [cronjob-备份PSQL应用] 任务开始 [START]
2025/11/23 01:00:05 开始备份
2025/11/23 01:00:15 开始压缩目录
2025/11/23 01:00:19 压缩目录成功,压缩为 app_postgresql_20251123010004do1ly.tar.gz
2025/11/23 01:00:19 开始上传备份文件 app/postgresql/postgresql/app_postgresql_20251123010004do1ly.tar.gz 到 WebDAV
2025/11/23 01:00:21 上传 失败 mkdir /1panel failed, code: 200,  err: 200 OK
2025/11/23 01:00:21 备份 [postgresql] 失败: mkdir /1panel failed, code: 200,  err: 200 OK
2025/11/23 01:00:22 [TASK-END]

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions