I'm creating a simple datebase backup solution for a client using web hosting at DataFlame.
The web hosting account provides access to cron but not a shell.
I have a database backup script creating regular backups and I want to automatically remove those more than N days old.
I attempted to use
find -v $backup_dir -mtime +$keep_days -name "*db.tar.gz" -delete
however the user executing the script does not have permission to run find
.
Can you suggest how to implement this without using the find
command?