On Wed, Aug 7, 2024 at 11:52 AM IEM Network Operation Center (IOhannes m zmölnig) <noc@iem.at> wrote:
thanks both Mark and Odhiambo (who replied off-list) for your answers.
On 8/6/24 18:40, Mark Sapiro wrote:
On 8/6/24 01:43, noc@iem.at wrote:
but how can i export an entire MM3 list (including 20 years of archives) to some serialization format, and import it again in another instance?
With the dump and other utilities from your database manager. Almost everything is in the database. There are some things in Mailman's var/ directory, but those can simply be moved.
urgh. while this will (hopefully) work with a fresh installation, i'm somewhat afraid whether this will also work for:
- migrating a single list from one instance to another (at least, if you (like me) do not have have an intimate knowledge about the db layout)
Hmm.. I think I did something like this in the recent past. I need to remember how I went about it though, but it could be something like: (Assuming a virtualenv install) I believe you could: there are no conflicts with the sites
- Make a full backup of the old MM2 install - I mean the DB and the MM3 files.
- update the install to the latest version corresponding to the one on the new server.
- Delete all lists with their archives EXCEPT that one list you want to migrate.
- Export the DB(s)
- !! Backup the DBs on the new server (just in case something bad happens!!
- Import the DB dumps from the old server into the new one. Hopefully,
- importing lists into an instance that is already populated with other
lists (things like changed db schemas come to my mind)
Here again, you should have both sites running at the same software level.
right now my task is to move both some MM3 lists (from an old MM3
instance) and some MM2 lists onto a single server with a fresh installation, so i guess i will be fine.
Okay.
my worries are mostly about future migrations.
Sit down and write down your plans. Always come back here for 'sanity checks' on those plans.
is a feature-request warranted, or am i worrying too much?
A feature to automate your migrations? Have you consulted ChatGPT yet? :-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]