HI,
I want to remove my backup files keeping last 30 days.
Now i am doing it manually.
Does anyone have a script to automate this process?
Thanks in advance
HI,
I want to remove my backup files keeping last 30 days.
Now i am doing it manually.
Does anyone have a script to automate this process?
Thanks in advance
try
find . -type f -mtime +30 -exec rm {} +
Elizabeth,
Do nit run that command - it will delete ALL files not modified for 30 days.b - Although the command is wrong correcting it would be a disaster.
Regards
Gull04
Are these simple files, or managed files, such as RMAN backup files?
If they are managed, then you would be safest using the supplied commands to clear these up. Software like RMAN will object if you just remove files it thinks it's in control of.
Robin
Thank you
They backup/restore format files
bakunin