#!/bin/bash
Dir="/backup/backup/"
days="30"
find $Dir -type f -mtime +$days -exec rm {} \;
modify days value according to requirement. How old files you want to delete.
Linux administration , Unix administration , Vmware Vsphere administration , Oracle DBA ,apache, backup, dhcp, dns, kvm, xen, kernel, ldap, kvm, monitoring, ticketing, networking, Mail servers, SAN,troubleshooting
No comments:
Post a Comment