Quote:
Originally Posted by Trumpetrhapsody
I just tossed this code in there to keep only the latest 5 backups:
|
Does this work for you? I have 6 files in my backupDB directory and after running the script I still have 6 files. The backups weren't created every day though, they were a few days apart for some of them. I placed the code in the same spot in my mysqlbackup.php file.