Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel to S3 Script using the new backup system not deleting remote files

Discussion in 'cPanel Developers' started by benjy, Sep 24, 2013.

  1. benjy

    benjy Registered

    Sep 24, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi All,

    I wrote a backup destination for the new backup system which sends files to Amazon S3. The script can be found here: /
    It's quite simple and just shims in the S3cmd tool.

    The script is not cleaning out old backups on S3. I'm not entirely sure why and I can't find an example, eg the SFTP backup destination source would be a nice reference?

    I'm wondering if it could be because I didn't properly implement the get_ls() method? If someone with some experience with the backup system could help that would be great.

    What would help to debug
    1. With what parameters is the script called to delete remote backups?
    2. When is the script called? Maybe it happens at a different time to when the backup runs?

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    While not directly related to your question, I would like to point out that there are plans to include native support for Amazon S3 in a future build of cPanel. The progress of this feature request can be tracked at:

    Amazon S3 integrated into WHM as a backup option

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice