Remotely backup cPanel accounts (even for v74+)
- PHP 5.3+
- Composer
- Creates array of failed and success ones
- Notifies user through emailing (sendgrid)
- Works with multiple servers
- Clone the repo
- Goto repo folder and run composer install command
- Configure main settings in conf.php
- Configure individual settings in conf_example.php
- Copy conf_example.php into another file conf_[name].php (where [name] can be anything)
- Update file with login details of new server
- Goto run.php and find conf_example.php
- Below it write
require_once "conf_[name].php"; - Save file
Add following to cron
0 0 * * 0 /usr/bin/php /path/to/script/run.php
Update timing and php location accordingly
- Add error catching
- Logging output to file