28 September, 2016

Delete files older than a year, a month, a week…

Recently I need to purge my Backup Disk to release new available space. I found this command to delete files older than 364 days. You can change this value to the one you need.
find -maxdepth 1 -mtime +364 *-exec rm -f {} \;

No comments:

Post a Comment

Redirection in IIS

 This config will redirect every request to https://www.domain.com <configuration>     <system.webServer>         <rewrite>...