UAPI +PHP. Backup from array list From server to Server
Hi!
I have an array of my WHM websites (host, user, pass), i need to host a script in my root server, that reads the array and send the generated backups to another FTP Server.
I used to do this with "xmlapi", and access with Cron, but my host updated cPanel so it stopped running.
Is it possible with UAPI? Could you help to build it?
-
Hello @Cassiano Aquino, You can use JSON output in place of the XML-like output. We document how the data is returned on the link below: UAPI - Return Data - Developer Documentation - cPanel Documentation Thank you. 0 -
Hello, i managed to build what i wanted, i will post a pastebin link in case someone needs. But basicly it runs an array with FTP servers and fires a Fullbackup of them to another server. The access is made with Cron. In case someone finds out my code sucks, and wish to contribute, no problem, i don"t mind....My code is missing some things that i can"t deal right now. Thanks to N1ghteyes, he made a class that helped me alot to get what i wanted. PS: Sorry for any bad writing, my english kinda sucks :P My code N1ghteyes (cpanel-UAPI-php-class): https://github.com/N1ghteyes0 -
Hello, i managed to build what i wanted, i will post a pastebin link in case someone needs.
Thanks for sharing the example! You should consider creating a public repo for the script on GitHub if you have the time. Even if you choose not to maintain it, it makes it easier for others to submit changes, discuss concerns, or fork it to their own repo. Thank you.0
Please sign in to leave a comment.
Comments
3 comments