Howdy, Stranger!

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


cPanel remote backup script (works with new versions)
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.

cPanel remote backup script (works with new versions)

Hello,

Yesterday I rewrote a part of my cPanel backup script which wasn't working due to removal of old and depreciated cPanel api in newer version (74 to be specific).

I have some resellers with a total of dozen accunts, I guess? I can't move them to dedi due to some reasons. So, just sharing a part of it.

Features:

  • Creates array of failed and success ones
  • Notifies user through emailing (sendgrid)
  • Works with multiple servers

Link: https://github.com/jetchirag/remote-backup-cpanel-php

TBH, it's a lazy day and I don't have much to do! Let me know if you have any other recommendation.

Thanks

Comments

  • FranciscoFrancisco Top Host, Host Rep, Veteran

    Good job :)

    Francisco

    Thanked by 1jetchirag
  • Do you work for JetBackup?

  • @Ishaq said:
    Do you work for JetBackup?

    haha nope, any reason to believe so? :blush:

  • ariq01ariq01 Member
    edited November 2018

    is it compressed as backup.tar.gz per account ?

  • @ariq01 said:
    is it compressed as backup.tar.gz per account ?

    Yes, it'll use date to create a directory on remote ftp server and send that path as parameter to cpanel server.

    [root@server files]# ls
    2018-11-26
    [root@server files]# ls 2018-11-26
    backup-11.26.2018_11-32-35_username.tar.gz
    
    Thanked by 1ariq01
Sign In or Register to comment.