Hi,
Wondering if have any script to merge archives.
We saved one of the accounts archives and then deleted and re-created the mailing list, were running for a week, now we need merge the saved archives with the existing one after the list re-creation. If were another month is easy but how you merge same month archives?
Thank you!
Manuel Kissoyan wrote:
We saved one of the accounts archives and then deleted and re-created the mailing list, were running for a week, now we need merge the saved archives with the existing one after the list re-creation. If were another month is easy but how you merge same month archives?
If you saved the old archives/private/listname.mbox/listname.mbox file, just concatenate the old and new files to make a archives/private/listname.mbox/listname.mbox that contains all the messages, and then rebuild the archives with
bin/arch --wipe listname
If you didn't save the old archives/private/listname.mbox/listname.mbox file, you can make an approximate reconstruction by editing the old archives/private/listname/yyyy-mmmmm.txt file to unobscure the email addresses.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you Mark!
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: <manuel@arteryplanet.net> Cc: <mailman-users@python.org> Sent: Wednesday, January 04, 2006 1:56 AM Subject: Re: [Mailman-Users] merge archives
Manuel Kissoyan wrote:
We saved one of the accounts archives and then deleted and re-created the mailing list, were running for a week, now we need merge the saved archives with the existing one after the list re-creation. If were another month is easy but how you merge same month archives?
If you saved the old archives/private/listname.mbox/listname.mbox file, just concatenate the old and new files to make a archives/private/listname.mbox/listname.mbox that contains all the messages, and then rebuild the archives with
bin/arch --wipe listname
If you didn't save the old archives/private/listname.mbox/listname.mbox file, you can make an approximate reconstruction by editing the old archives/private/listname/yyyy-mmmmm.txt file to unobscure the email addresses.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you Mark,
What is houdl do with the archives? i mean there are list_name.mbox and the list_name directory, the list_name directory have the previous months info, i must copy all this directories before merge the mbox file?
It have the databases and attachements directories also, i must overwrite them withe backed up files? and the index.html and pipermail.pck files?
Thank you!
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: <manuel@arteryplanet.net> Cc: <mailman-users@python.org> Sent: Wednesday, January 04, 2006 1:56 AM Subject: Re: [Mailman-Users] merge archives
Manuel Kissoyan wrote:
We saved one of the accounts archives and then deleted and re-created the mailing list, were running for a week, now we need merge the saved archives with the existing one after the list re-creation. If were another month is easy but how you merge same month archives?
If you saved the old archives/private/listname.mbox/listname.mbox file, just concatenate the old and new files to make a archives/private/listname.mbox/listname.mbox that contains all the messages, and then rebuild the archives with
bin/arch --wipe listname
If you didn't save the old archives/private/listname.mbox/listname.mbox file, you can make an approximate reconstruction by editing the old archives/private/listname/yyyy-mmmmm.txt file to unobscure the email addresses.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
What is houdl do with the archives? i mean there are list_name.mbox and the list_name directory, the list_name directory have the previous months info, i must copy all this directories before merge the mbox file?
It have the databases and attachements directories also, i must overwrite them withe backed up files? and the index.html and pipermail.pck files?
When you run
bin/arch --wipe list_name
it reads the contents of archives/private/list_name.mbox/list_name.mbox and entirely rebuilds the structure in archives/private/list_name/. Thus, you only need to merge the list_name.mbox files into one archives/private/list_name.mbox/list_name.mbox that contains all the messages and run the above command.
You don't need to do anything in the archives/private/list_name/ directory because it will be entirely rebuilt.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you mark!
----- Original Message ----- From: "Mark Sapiro" <msapiro@value.net> To: "ArteryPlanet.Net :: Manuel Kissoyan" <manuel@arteryplanet.net> Cc: <mailman-users@python.org> Sent: Monday, January 23, 2006 2:08 PM Subject: Re: [Mailman-Users] merge archives
What is houdl do with the archives? i mean there are list_name.mbox and the list_name directory, the list_name directory have the previous months info, i must copy all this directories before merge the mbox file?
It have the databases and attachements directories also, i must overwrite them withe backed up files? and the index.html and pipermail.pck files?
When you run
bin/arch --wipe list_name
it reads the contents of archives/private/list_name.mbox/list_name.mbox and entirely rebuilds the structure in archives/private/list_name/. Thus, you only need to merge the list_name.mbox files into one archives/private/list_name.mbox/list_name.mbox that contains all the messages and run the above command.
You don't need to do anything in the archives/private/list_name/ directory because it will be entirely rebuilt.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
ArteryPlanet.Net :: Manuel Kissoyan
-
Mark Sapiro