I've been playing with Automator lately to create a backup of my websites files (opening Transmit, syncing, creating an archive of all the files timestamped). That said I only need to keep X number of these archives, so I was trying to figure out how to create a program/script that would delete the oldest files in the specified "backup" directory in order to maintain X number of archives. My first problem is I haven't been successful in getting automator to find the archives in the specified folder - none of them. When I use Find/Filter Finder Items it always returns no results. I think this may have to do with the directory being on a NAS (Segate GoFlex Home). I could put it on my local HD but I don't want to since it's quite a lot of space. Any ideas on how to do this, and then maintain X number of archives in that directory? (a secondary question is - does anyone know how to run a script from my local machine that will do a mysqldump of my mysql db's?...right now I'm just manually downloading this to correspond with my automated backup).