Purge data command
Hi,
I have data in linux box that is transfered from 1 server to another.. Before transfer , i will keep a copy in "Backup" folder. What is the command to purge data older than 3 days? Thanks, Sab |
Guys, i found it:
/usr/bin/find /data/logs -name "*" -type f -mtime +31 -print -exec /bin/rm -f {} \; |
Glad you found it. Please mark as SOLVED (thread tools)
|
Quote:
Code:
-name "*" Code:
-exec rm {} \; Code:
| xargs rm Cheers, Tink |
All times are GMT -5. The time now is 12:04 PM. |