On 6/30/21 9:23 PM, Mark Sapiro wrote:
On 6/30/21 6:23 AM, Lucia Moreno wrote:
Hi Mark,
We are facing the same issue. My postgres database is growing too fast and I would need to do some creaning of old archives dated from 2001 and keep only the last, lets say... 5 years.
Could you please help us with the development of such a script? I have no experience in python.
The attached script is a rough idea.
Another way to do this that might actually be preferable is to download the entire archive from HyperKitty as a mbox, then split the mbox into what you want to keep and what you don't, delete the list from HyperKitty and then run hyperkitty_import to import only the messages you want to keep.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan