my backups are stored in folders. e.g
**05092013** >
- File1.sql
- File2.sql
- File1.tar
- File2.tar
and so on.
Now I want to delete all Folders that are older than X Days.
I tried this
find $FILEDIR -mtime +14 -exec rm {} \;
but it only deletes all files and not the folders. how can i delete all files and folders that are older?
can someone help me?
Thx in advance cSGermany