There is already a TimedRotatingFileHandler which will do backups on a schedule, including daily. The correct way of doing what you want is to submit a patch via SourceForge. If the patch is accepted, then your code will end up in Python. Thanks, Vinay Sajip