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!

Backup to Digital Ocean Spaces?

Discussion in 'Data Protection' started by reholmes27, Dec 22, 2017.

Tags:
  1. reholmes27

    reholmes27 Member

    Joined:
    Aug 31, 2014
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I'd like to use a Digital Ocean Space to backup my accounts to but I can't find a solution for this. I've set up the space, which is very much like Amazon S3, and I can connect to it using the Amazon S3 protocol in an application such as CyberDuck.

    When I try to connect to it using the Amazon S3 option in the backup configuration it fails. I can only assume the S3 path is hard coded in the configuration somewhere? I've tried creating a custom transport option but I don't know what I'd need to put in the transport script for it to work.

    Any advice gratefully received.

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The Amazon S3 destination type is designed specifically for Amazon S3 destinations. I recommend consulting with your provider to determine which services are supported with the backup service they offer. For instance, you might be able to simply use a destination type such as rsync or SFTP if it's a standard linux-based server.

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

    reholmes27 Member

    Joined:
    Aug 31, 2014
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thanks for your reply.

    It's not a linux based server, it's just storage space accessible via an S3 connection so rsync and SFTP are not available. Can you tell me where to find the configuration file for the Amazon S3 destination as I may be able to use it to set up a custom destination, changing the S3 URL and any other settings?

    Thanks
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. reholmes27

    reholmes27 Member

    Joined:
    Aug 31, 2014
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Thanks Michael, very useful.

    If I edit that file and add a host attribute, with a value of ams3.digitaloceanspaces.com, into the Amazon::S3->new call I can get it to connect to the Digital Ocean S3 storage space.

    I've edited the AmazonS3.pm file though so it may get overwritten in a future update, however, it works for now. Can I suggest you add in the option for a host to be entered into the Amazon S3 configuration and that would be all it needs.

    Thanks

    Rich
     
    Chirag Jain likes this.
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi Rich,

    I'm glad to see that worked. You can open a feature request if you'd like to see additional functionality added to the existing Amazon S3 backup destination type:

    Submit A Feature Request

    Also, if you are wanting to ensure changes to that file are preserved through updates, you could setup a post upcp hook similar to how it's done on the following thread:

    HELO name problem on roundcube

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

    highburst Registered

    Joined:
    Jan 8, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    +1 for Digital Ocean Spaces backup location in WHM.
     
  8. brt

    brt Well-Known Member

    Joined:
    Jul 9, 2015
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    US
    cPanel Access Level:
    Root Administrator
    I don't plan on using Digital Ocean Spaces specifically here, but there are so many S3-compatible services out there that it only makes sense to have the S3 backup configurable instead of hard-coded to just the actual Amazon S3.

    For backup purposes, S3 pricing would be insane.
     
  9. mega023

    mega023 Member

    Joined:
    May 20, 2005
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    151
    Yes that seems to be possible by modifying that file:
    geektnt.com/how-to-backup-whm-cpanel-accounts-to-digitalocean-spaces.html
    But are there any plans to make possible using S3-compatible service (so I could use Wasabi.com)?
     
    #9 mega023, Feb 3, 2018
    Last edited by a moderator: Feb 7, 2018
    ylluminate likes this.
  10. ylluminate

    ylluminate Member

    Joined:
    Apr 12, 2013
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Same here, need to be able to use services like Wasabi or DreamHost. This would be a quick and simple alteration for cPanel to add this functionality.

    See FEATURE REQUEST: Custom S3-compatible backup locations
     
    #10 ylluminate, Feb 7, 2018
    Last edited by a moderator: Feb 7, 2018
    cPWilliamL likes this.
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    We are tentatively planning to add support for S3 compatible storage providers (other than Amazon) as backup destinations in cPanel & WHM version 74. Please feel free to watch the following feature request for updates:

    Custom S3-compatible backup locations

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

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