Hi there I have a problem after running my script. Please check my script below:
find /backup/data -name '*' -type d -mtime +7 -exec rm -r {} \; 1>/dev/null 2>&1
find /backup/data1 -name '*' -type d -mtime +7 -exec rm -r {} \; 1>/dev/null 2>&1
my aim is to delete only the directory under the data and data1. But after running the script the data and data was also deleted. I hope you can help me...
thanks..
find /backup/data -name '*' -type d -mtime +7 -exec rm -r {} \; 1>/dev/null 2>&1
find /backup/data1 -name '*' -type d -mtime +7 -exec rm -r {} \; 1>/dev/null 2>&1
my aim is to delete only the directory under the data and data1. But after running the script the data and data was also deleted. I hope you can help me...
thanks..