See my need, I have a cron that runs every night and creates a file_ddmmaaaa.backup on the Linux Kubuntu server, it happens that the hard disk is filling since this backup file has in average 500MB, how to create a cron that deletes files a date earlier than one week from the current date?
I've been thinking about how to do this but I do not handle a lot of cron and how could I put variables in cron, maybe the solution is script, but rs, I'm also very good at script.
The delete script would be roughly
delete /folder/file.backup
Where would * file be with previous dates