On Thu, May 2, 2019 at 11:02 AM sebb <seb...@gmail.com> wrote: > > Also, the same applies to > > /srv/members v. /srv/mail/members > and > /srv/secretary v. /srv/mail/secretary > > I assume the old emails from the former directories can just be dropped?
Seems reasonable to me. > Note: there is a directory /srv/secretary/tlpreq > which is a workspace for > https://svn.apache.org/repos/infra/infrastructure/trunk/tlpreq/input > > That will need to be kept It would probably be a better idea to change the code to make and use a temporary directory. Work directories on whimsy-vm1 would frequently get 'wedged' (as clr would put it) and would need manual intervention to clean up. Any failure with a temporary directory is retryable. - Sam Ruby > On Wed, 1 May 2019 at 17:33, sebb <seb...@gmail.com> wrote: > > > > On Wed, 1 May 2019 at 17:29, Sam Ruby <ru...@intertwingly.net> wrote: > > > > > > On Wed, May 1, 2019 at 12:09 PM sebb <seb...@gmail.com> wrote: > > > > > > > > On Wed, 1 May 2019 at 16:48, Sam Ruby <ru...@intertwingly.net> wrote: > > > > > > > > > > On Wed, May 1, 2019 at 10:53 AM sebb <seb...@gmail.com> wrote: > > > > > > > > > > > > There are quite a few board@ mails stored under /srv/board. These > > > > > > date > > > > > > from 201605 to 201705. > > > > > > > > > > > > Some are duplicates of those under /srv/mail/board but there are > > > > > > some > > > > > > unique ones, and some are copies sent to whimsy-vm3 for which there > > > > > > are copies sent to whimsy-vm4. > > > > > > > > > > > > Do these need to be copied to the new host? > > > > > > > > > > I don't believe so. The new directory is /srv/mail/board. > > > > > > > > > > > How long do board emails need to be kept for use by Whimsy? > > > > > > > > > > One year (probably best rounded to 13 months). As an example, the > > > > > board agenda tool will report whether or not comments made on board > > > > > reports within the last year got any responses. > > > > > > > > OK, so maybe there needs to be a monthly clean-up? > > > > > > Just for clarity, it would be a good idea to have a cron job that runs > > > monthly under the www-data user id that runs something like the > > > following logic: > > > > > > require 'date' > > > require 'fileutils' > > > > > > keep = (Date.today - 365).strftime('%Y-%m') > > > > > > mail = '/srv/mail' > > > > > > Dir["#{mail}/board/20*", "#{mail}/members/20*"].each do |dir| > > > FileUtils.rm_rf dir unless File.basename(dir) >= keep > > > end > > > > OK, I can set that up. > > > > What about the secretary emails? > > Or do we need to keep those for longer (or forever)? > > > > > - Sam Ruby