aboutsummaryrefslogtreecommitdiff
path: root/clean.sh
blob: a6b85fc665b9ff64dd08474a19b7039fb6802886 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

svrs='change
me
example.com
weeeee.example.com'

for _svr in $svrs ; do
	find ./"$_svr"/monthly -type f -mtime +$((30*6)) -delete
	find ./"$_svr"/weekly -type f -mtime +$((7*4)) -delete
	find ./"$_svr"/daily -type f -mtime +7 -delete
done