A couple posts ago I mentioned that my Plex database backup script wasn't handling deleting old backups, and was eating up space that I had to go in and free up manually. I finally took a couple minutes and added a couple lines to fix the problem:
I keep a cloud backup of everything, even the database backups, so I'm not worried about losing anything. That said, I'll check up on it in a few days after it's run as scheduled, and verify that it's working correctly! Manually running a script and running it via a cron job don't always work precisely the same.