Setup cPanel connect:
- Server adress
- Server Username
- Server Password
FTP server is optionally (for replicate the backup).
Control the number of backups and the dir for the backups:
- Max_Backups
- Backup_Folder
With this method can manage various types of backup while (weekly, monthly,...)
- Unzip and upload on your FTP server
- Run backup.sh for Cron with parameter for the backup folder
File setup:
/backups
../backup_daily/
../backups_monthly/
../xmlapi-php/
config.php
perform_cpanel_fullbackup.php
worpit_cpanel_base.php
Crontab:
0 5 * * * ~/backups/backup.sh backup_daily 10
# Backup every day at 5:00. 10 max backups.
0 3 1 * * ~/backups/backup.sh backup_monthly 12
# Backup first day of every month at 3:00