Delete Old Folders

From KlavoWiki
Revision as of 05:54, 15 December 2008 by David (Sọ̀rọ̀ | contribs) (New page: To remove folders and thier contents older than x days. Replace +7 with the number of +days required. <pre> find /vmbackups/ -mtime +7 -exec rm -rf {} \; </pre> Category : Linux)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To remove folders and thier contents older than x days. Replace +7 with the number of +days required.

find /vmbackups/ -mtime +7 -exec rm -rf {} \;