[Buildbot-commits] buildbot/docs buildbot.texinfo,1.2,1.3

Brian Warner warner at users.sourceforge.net
Sun May 15 23:51:21 UTC 2005


Update of /cvsroot/buildbot/buildbot/docs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2192/docs

Modified Files:
	buildbot.texinfo 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-173
Creator:  Brian Warner <warner at monolith.lothar.com>

describe how to delete old Builds and logs with a cron job

Patches applied:

 * warner at monolith.lothar.com--2005/buildbot--dev--0--patch-26
   Merged from arch at buildbot.sf.net--2004 (patch 171-172)

 * warner at monolith.lothar.com--2005/buildbot--dev--0--patch-27
   describe how to delete old Builds and logs with a cron job


Index: buildbot.texinfo
===================================================================
RCS file: /cvsroot/buildbot/buildbot/docs/buildbot.texinfo,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- buildbot.texinfo	12 May 2005 20:10:11 -0000	1.2
+++ buildbot.texinfo	15 May 2005 23:51:18 -0000	1.3
@@ -778,6 +778,22 @@
 let the project admins know, so they can put out a call for a
 replacement.
 
+The Buildbot records status and logs output continually, each time a
+build is performed. The status tends to be small, but the build logs
+can become quite large. Each build and log are recorded in a separate
+file, arranged hierarchically under the buildmaster's base directory.
+To prevent these files from growing without bound, you should
+periodically delete old build logs. A simple cron job to delete
+anything older than, say, two weeks should do the job. The only trick
+is to leave the @file{buildbot.tac} and other support files alone, for
+which find's @code{-mindepth} argument helps skip everything in the
+top directory. You can use something like the following:
+
+ at example
+@@weekly cd BASEDIR && find . -mindepth 2 -type f -mtime +14 -exec rm @{@} \;
+@@weekly cd BASEDIR && find twistd.log* -mtime +14 -exec rm @{@} \;
+ at end example
+
 @node Troubleshooting,  , Maintenance, Installation
 @section Troubleshooting
 





More information about the Commits mailing list