Delete Old Folders

From KlavoWiki
Revision as of 05:55, 15 December 2008 by David (Sọ̀rọ̀ | contribs) (Delete Old Files moved to Delete Old Folders)
(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 {} \;