Ticket #413 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Sample crontab maintenance script will delete files in $BASEDIR/public_html

Reported by: ericfung Owned by:
Priority: minor Milestone: 0.7.10
Version: 0.7.9 Keywords: crontab maintenance
Cc:

Description

In Sec 2.9 (Maintenance) of the BuildBot Manual, there are sample crontab entries to manage the status and log files for builds. This sample entry:

@weekly cd BASEDIR && find . -mindepth 2 -type f -mtime +14 -exec rm {} ;

has the potential to delete files in the $BASEDIR/public_html directory since public_html is at the same depth as the build directories where logs are kept.

Change History

comment:1 Changed 4 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
@weekly cd BASEDIR && find . -mindepth 2 -path './public_html/*' -prune -o -type f -mtime +14 -exec rm {} ;

should work better -- patch committed.

comment:2 Changed 4 years ago by dustin

  • Milestone changed from undecided to 0.7.10
Note: See TracTickets for help on using tickets.