by Ken Task.
backup preferences to include date time stamp.
backup-moodle2-course-2-sa-20230515-0549.mbz
backup-moodle2-course-3-mdlsampler-20230515-0548.mbz
backup-moodle2-course-4-mdlsampler2-20230515-0548.mbz
backup-moodle2-course-56-mshare38-20230515-0548.mbz
backup-moodle2-course-57-ktnoclas-20230515-0549.mbz
backup-moodle2-course-59-mdlcli-20230515-0548.mbz
Date indicates a run made just today.
While not automated, when my logwatch report shows space usage is at 90% I go into the directory where backups reside and rm -f *yyyymm* - which would get all backups made in the month of mm (like 04, or 03).
Now how one does that in Windows, I don't know!
. Above might spark an idea!
Automation in general ... careful, if you sucessfully automate too much, customer will begin to wonder, 'Why do we need him/her/pronoun?"
But, no fear, case in point ... not related to course backups but PHP update ..
Yesterday there was an update to php available. I attempted to acquire but could not - conflict resolution of libraries could not be accomplished with reputable 3rd party repo from which server was getting PHP updates.
Come to find out, didn't have a special repo enabled to avoid such issues - and hadn't for years (all past updates never complained). Once enabled, no issues.
Uhhh ... don't automate yourself into oblivion! ![smile smile]()
'SoS', Ken