On 08/17/2016 05:31 AM, Jewel Brueggeman-Makda wrote: > I am wanting to shrink the archives on my lists. I only want to keep archives > for the last 2 or 3 years. Is there a script that will do this? What are > the steps to truncating and rebuilding an archive?
Mark Sapiro has written a script that will prune older messages from an archive, and then rebuild the HTML archives: https://www.msapiro.net/scripts/prune_arch You can do it by hand by editing the mbox file for the list (typically /var/lib/mailman/archives/private/{listname}.mbox/{listname}.mbox) to remove the messages you no longer want to keep, and then rebuild the HTML archives with "arch --wipe {listname}" Be careful to maintain file permissions during the process. There are more details in the Mailman FAQ: https://wiki.list.org/x/4030681 -- Jim Tittsler http://OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/crew/jwt/ Mailman IRC irc://irc.freenode.net/#mailman ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org