This should be possible within Moodle itself, so shouldn't be neccesary to develop one.
Have a look at https://docs.moodle.org/39/en/Course_backup and siteadministration -> courses -> backup.
Here you can set up automatic backup and rules for how long they should be kept, and choose what should be included in the backup.
Have a look at https://docs.moodle.org/39/en/Course_backup and siteadministration -> courses -> backup.
Here you can set up automatic backup and rules for how long they should be kept, and choose what should be included in the backup.