Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Backing Up cPanel as a Reseller
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Backing Up cPanel as a Reseller

raindog308raindog308 Administrator, Veteran

I have a BuyShared reseller account and would like to do my own off-site backups. I think @Francisco does R1Soft but...always have your own.

If I was the server admin, I'd use cpbackup, but that's not available as a reseller.

I'd like something that tars up the home directory and captures all MySQL DBs, mail, etc.

I've found a couple options:

  • cpbackup.info (which as a bonus supports Dropbox). Complete black box code, though as it's ioncube'd.

  • siteautobackup. I already have storage VPSes though so it's an extra cost, and I'd have to give my WHM credentials to a third party.

I could write a script and run it in each subaccount but I can't be the first one to want to do this...

Comments

  • Another one is whmeasybackup

  • FranciscoFrancisco Top Host, Host Rep, Veteran

    We got r1soft but having your own is always good :)

    Francisco

  • +1 for whmeasybackup

  • +2 for whmeasybackup

    Thanked by 1HostingSpecialists
  • raindog308raindog308 Administrator, Veteran

    Ended up with whmeasybackup. Works well enough, but has some hard limitations:

    • Only supports scp on port 22
    • No support for sftp as far as I can tell
    • Does not support ssh keys
    • No config around retention, etc. Not sure it even deletes old backups, and no docs.

    A little hint...if something isn't working, add this to your config.php:

    $debugmode = 'all';
    

    I paid $11 for a lifetime license and on that basis, it's worth it, but overall it's meh code.

    Thanked by 1Junkless
  • @raindog308 said:
    Ended up with whmeasybackup. Works well enough, but has some hard limitations:

    • Only supports scp on port 22
    • No support for sftp as far as I can tell
    • Does not support ssh keys
    • No config around retention, etc. Not sure it even deletes old backups, and no docs.

    A little hint...if something isn't working, add this to your config.php:

    > $debugmode = 'all';
    > 

    I paid $11 for a lifetime license and on that basis, it's worth it, but overall it's meh code.

    I bought a lifetime license but have only used it a couple times, I wasn't keen on it either!

  • AmitzAmitz Member
    edited April 2016

    raindog308 said:

    • Only supports scp on port 22
    • No support for sftp as far as I can tell
    • Does not support ssh keys
    • No config around retention, etc. Not sure it even deletes old backups, and no docs.

    That's quite a lot of downsides to be honest... :-(
    It's really a pity that nothing more elaborate seems to exist.

  • @Amitz said:
    It's really a pity that nothing more elaborate seems to exist.

    It would be great if there was something the host could install and in WHM I could just plug in a backup location. Like I think cPanel has S3 backups now, but it's not extended to resellers or users.

  • raindog308raindog308 Administrator, Veteran

    Sorry, you can change the port - my mistake.

    However, lack of key support is probably because they're calling the cpanel API to do the fullbackup. The link that @Hybrid shared shows an API call, and that API is cpanel 1.0, which is marked as "We strongly recommend that you do not use cPanel API 1. However, no equivalent function exists in our newer APIs."

    https://documentation.cpanel.net/display/SDK/cPanel+API+1+Functions+-+Fileman::fullbackup

  • raindog308raindog308 Administrator, Veteran

    mikeyur said: It would be great if there was something the host could install and in WHM I could just plug in a backup location. Like I think cPanel has S3 backups now, but it's not extended to resellers or users.

    It'd even be greater if there was some kind of S3-compatible storage out there, a kind of space where you could store objects, using the same API, only cheaper...

    Thanked by 1mike0000
  • @raindog308 said:

    I need to get you an affiliate link.

  • Next time you find a useful tool, but it's encoded, you can always take a look at the code behind it. Of course for educational/safety purposes. Our parent company's product Reverzor can do that for you.

    I still personally use it weekly, sometimes I find handy scripts, but I can't just throw them on my private server. I audit them, when passed I just use it.

  • raindog308 said: Ended up with whmeasybackup

    bro, do you have any screenshot of how is the panel or what to do?

    thanks

  • raindog308raindog308 Administrator, Veteran

    dedicados said: bro, do you have any screenshot of how is the panel or what to do?

    It's OK. It's essentially a glorified wrapper around the API call I listed above.

    It works. You configure a config.php and setup a couple cron jobs and it runs. Long-term I'm not happy with it because it's password-based rather than key-based, you can't change it on a per-account basis, etc. but I needed to get backups in place quickly, so it'll run while I improve.

    Not sure there is a solution other than dropping a script into every home. The only way to kick off a full backup as a reseller is that API call, which has many limitations as the docs show.

  • MadMad Member

    Tell me if I'm wrong but couldn't it be also a workaround to backup the whole reseller account and import it elsewhere? (it will take surely much more time but it's free).

    As far as I know some providers charge you whenever you want to move the whole reseller account in another cPanel server (VPS or dedicated).

    There is an automated cPanel script that let you do it if you have root access on both of the server and the providers may do it by charging per account.

  • raindog308raindog308 Administrator, Veteran

    andreamada said: Tell me if I'm wrong but couldn't it be also a workaround to backup the whole reseller account and import it elsewhere? (it will take surely much more time but it's free).

    Sure, if you have root...

    andreamada said: There is an automated cPanel script that let you do it if you have root access

    And there's the problem. Backing up as a reseller is the scenario.

  • MadMad Member
    edited April 2016

    Though if you plan to move the reseller to a VPS or dedicated in order to handle everything yourself you can easily do it via this tool bypassing the provider's limits (charging you per account). I honestly never thought about it before.

    Obviously it cannot be applied if you are moving to another reseller account unless you are willed re-create the accouts and import each zip manually :)

    @raindog308 have you also tried CPBackup? Which one is truly better?

    I may give it a try on our own cPanel server.

  • raindog308raindog308 Administrator, Veteran

    andreamada said: Though if you plan to move the reseller to a VPS or dedicated in order to handle everything yourself you can easily do it via this tool bypassing the provider's limits (charging you per account). I honestly never thought about it before.

    It's still a pain...I'm not 100% confidant it restores everything in the sense of addon accounts, custom DNS, MySQL DBs, etc. I should create an account and try a restore.

    (To be clear, I know the data is there and I can recreate it manually, but I suspect it's manual unless you have root).

  • MadMad Member
    edited April 2016

    @raindog308 said:
    (To be clear, I know the data is there and I can recreate it manually, but I suspect it's manual unless you have root).

    if you are moving it to another reseller account (different provider) most of the actions must be done manually, you save time only in the backup process which is done by the script, it worths though if you are moving to a server with root access.

  • agoldenbergagoldenberg Member, Host Rep

    @raindog308 I've migrated several customers from other cpanel hosts to my servers and it does in fact backup EVERYTHING including mysql, custom DNS and the like.

  • raindog308raindog308 Administrator, Veteran

    agoldenberg said: @raindog308 I've migrated several customers from other cpanel hosts to my servers and it does in fact backup EVERYTHING including mysql, custom DNS and the like.

    Right - that I believe. But restoring that...I think to go through the entire account restore "as it was via cpanel magic" requires root. As a reseller you can't get there.

    I haven't entirely played with it but when I've taken full backups of an account in cpanel, you have to be root to restore them. Otherwise you're into partial backups and while you get everything, you have to do things manually not "choose tarball, click go".

Sign In or Register to comment.