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
9 Likes
vovler
November 26, 2018, 2:47pm
2
Damn, thanks for that! Will test it out soon
1 Like
Mason
November 26, 2018, 3:11pm
3
Great work and thanks for sharing!!
Backups in this day and age should never be overlooked. Thanks for making it easier for the rest of us
2 Likes
vovler
November 27, 2018, 5:01pm
4
Haven’t got the chance to test it yet, but I have one question. Does it also backup MySQL databases?
Well it’s full cpanel backup so yeah.
2 Likes
vovler
November 29, 2018, 11:18pm
6
The FTP connect that creates the backup folder doesn’t use the custom port.
File : run.php
Line : 33
$ftpConnection = ftp_connect($ftpHost);
to
$ftpConnection = ftp_connect($ftpHost, $ftpPort);
1 Like
Thanks, didn’t need it for myself so forgot to add. I’ll update files.
2 Likes