【问题标题】:setting dropbox as custom backp on whm/cpanel error在 whm/cpanel 错误时将保管箱设置为自定义备份
【发布时间】:2018-08-26 16:01:54
【问题描述】:

我正在尝试将保管箱设置为以下 cpanel 博客下方的自定义备份目标。连接正常,但备份文件未传输到 DropBox。当我按下验证到自定义备份目标时,它会出现以下错误。

https://blog.cpanel.com/cpanel-whm-custom-backup-transport-example-dropbox/

Error: Validation for transport “dropbox” failed: Could not list files in 
destination: Executed /usr/local/bin/backup_transport_dropbox.pl ls / 
remotehost remoteuser : 2018-08-26T15:54:21 [WebService::Dropbox] [ERROR] 
https://api.dropboxapi.com/2/files/list_folder {"path":"/"} -> [400] Error in 
call to API function "files/list_folder": request body: path: Specify the root 
folder as an empty string rather than as "/". at 
/usr/local/share/perl5/WebService/Dropbox.pm line 184.

我是 dropbox api 的新手,不了解 perl,因此无法弄清楚以下链接讨论的内容。

https://github.com/silexlabs/unifile/issues/77

【问题讨论】:

    标签: perl backup cpanel dropbox whm


    【解决方案1】:

    错误消息正确地表明the Dropbox API expects the value "" when referring to the root alone。代码改为发送值"/"。这看起来像是代码中的错误。

    您似乎已经为此向开发人员提出了问题:

    https://github.com/CpanelInc/backup-transport-dropbox/issues/3

    当引用 Dropbox 上的根文件夹时,他们应该更新代码以使用 ""

    【讨论】:

    • 感谢您的评论。是的,我已经在 Github repo 上打开了 issue。我发现已经有 2 个问题没有得到答复,没想到他们会很快回复。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-22
    • 1970-01-01
    相关资源
    最近更新 更多