Find command issue
I am using find to search for .tgz files modified more than 7 days ago and delete them.
find /directory/ -iname backup*.tgz -daystart -mtime +7 -exec rm -rf {} \ My problem is that find will go through the content of tarball as well and list all content. I want to only search main tarball and delete it if older than 7 days. |
Ummm ... if it does then it's because you told it to, and it's NOT
what the invocation above will do. Cheers, Tink |
Directory I am searching is mounted NFS share. Can that cause the issue?
|
Problem solved. There was an issue with NFS server.
|
Please mark as SOLVED then.
|
All times are GMT -5. The time now is 04:52 AM. |