fix: 解决计划任务备份上传路径错误的问题 (#3742)

This commit is contained in:
ssongliu 2024-01-29 16:35:06 +08:00 committed by GitHub
parent a5304b66e3
commit e309b9c030
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,6 +265,9 @@ func loadClientMap(backupAccounts string) (map[string]cronjobUploadHelper, error
return nil, err
}
pathItem := account.BackupPath
if account.BackupPath != "/" {
pathItem = strings.TrimPrefix(account.BackupPath, "/")
}
clients[target] = cronjobUploadHelper{
client: client,
backupPath: pathItem,