My webapp is hosted on a unix server using MySQL as a database.
I wrote a Perl script to run a backup of my database. The perl script is inside cgi-bin folde and works. I only need to install cronjob and run the Perl script once a day.
Backups are stored in a folder named db_backups ,. However, I also want to add a command inside my Perl script to delete any files inside the db_backups folder that are older than they say 10 days ago.
I searched high and low for unix commands and cannot find anything that matches me.
source
share