When the current date is greater than the date of day 15 (last day of the table backup) I need to automatically delete all backup tables and keep only the master table.
I can generate a range of contiguous dates in MySQL with a query like this DB Fiddle
Any suggestion for delete all backup tables automatically?
BTW, duplicating a table with data in the same database is not really a backup, if the database gets corrupted you are still lost. I would prefer to do an mysqldump to a file instead. In that case you can also very easy delete the backups by deleting the files.
I too would do a MySQL dump rather than a db backup.
In this case you could dump to file in your desired cadence and once you could have a CRON job to delete dump files that meet some type of criteria like the age of files.