Scripts for scheduling XtraBackup Full and incremental backups in a production environment

I am looking for robust scripts for scheduling full and incremental backups in production environment. For example: If we plan to do daily full backup and hourly incremental backup (exact time my differ, another database may need weekly full and daily incremental backup), how this can be automated. It’s very common requirement, I am sure, this might have been implemented in many sites.


Check below script, it might be helpful for you to automate the backup/restore process.