#5375 Consider supplying a tarball of meeting logs for grepping
Closed: Fixed None Opened 7 years ago by tibbs.

Occasionally the packaging committee would like to search through its seven years of meeting logs to understand why on earth we did something a particular way. I can ssh to value01 and tar off what I need, but most people can't do that.

Is it possible to provide an occasionally generated tarball of the meeting logs for downloading? Maybe put it under /srv/web/meetbot/archives or somesuch, with the tarball named after the team.

The entire archive of FPC documents compressed with gzip comes out to 14MB and tars up in about three seconds, so I don't think this would cause significant load on anything. It would probably be sufficient to just tar up the log.txt files, since this is for grepping and we can go back to the møte application once we know the meeting date. I would think that just running a mass tar over everything in teams once a week would be plenty.

I'm typing this straight out of my ass, but it's at least a skeleton. Take super extra care to handle bad input, as anyone can create a meeting with any topic and those can get directly into the teams directory. I assume møte sanitizes them, but be sure of that before implementing anything.

{{{
umask 022
mkdir /srv/web/meetbot/archives
cd /srv/web/meetbot/teams
for team in ; do
pushd $team >/dev/null 2>&1
tar -chf ../../archives/$team.tgz
.log.txt
popd >/dev/null 2>&1
done
}}}


Hi i'd like to work on it. I'll take it.

Just put this file to /etc/cron.weekly
meeting2.sh

meeting.sh should be able to make new folder,set permission and try to backup logs.
meeting2.sh should be in cron.weekly folder after running meeting.sh script first.

added if statements and this should work by running it as cron
meeting-r1.sh

ok. I set the script and cron up and ran it.

I suppose it's better than not being there, but our 'teams' directory is full of junk because people can't seem to name meetings the same thing everytime. ;(

Anyhow, I think the fpc has been pretty good about it, so the fpc.tgz may well contain all the meetings.

Enjoy.

Login to comment on this ticket.

Metadata