Parent Directory | Revision Log
add script and cron to clean live build data
1 | blino | 1703 | #!/bin/bash |
2 | |||
3 | # clean old draklive build sets | ||
4 | DRAKLIVE_ROOT=/var/lib/draklive | ||
5 | RM="echo rm -rf" | ||
6 | |||
7 | # keep only chroot/build sets from previous day | ||
8 | MAX_BUILD_AGE=1 | ||
9 | find $DRAKLIVE_ROOT/{chroot/*,build/*/*} -maxdepth 0 -not -name dist -mtime +$(expr $MAX_BUILD_AGE - 1) -exec $RM {} \; | ||
10 | |||
11 | # keep dist (iso + lists) for all sets during 20 days | ||
12 | MAX_DIST_AGE=20 | ||
13 | find $DRAKLIVE_ROOT/build/*/dist -maxdepth 0 -mtime +$(expr $MAX_DIST_AGE - 1) -exec $RM {} \; |
Name | Value |
---|---|
svn:eol-style | native |
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.30 |