Moving mm2 mail archives to mm3
Is there any way to move my old mm2 archives to mm3?
Thanks.
-Tom
On 07/20/2017 01:20 PM, Tom Browder wrote:
Is there any way to move my old mm2 archives to mm3?
Yes. Once you have HyperKitty and Mailman 3 installed, you use the 'django-admin hyperkitty_import' command to import, e.g., the MM 2 archives/private/LISTNAME.mbox/LISTNAME.mbox file to HyperKitty.
See 'django-admin hyperkitty_import --help' for more info.
Note that if there are already posts archived on the MM 3 list, you will need the '--since DATE' option with an early date because the default is to not import anything older than the most recent post in the current archive.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
See 'django-admin hyperkitty_import --help' for more info.
Is this also valid using Docker-mailman? I don't have a hyperkitty_import django command. How do I import MM2 archives in Docker-MM3?
# docker exec -it mailman-web bash bash-4.3# django-admin help
Type 'django-admin help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate runserver sendtestemail shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.).
-- Henrik Rasmussen
On Tue, Aug 29, 2017, at 05:43 AM, Henrik Rasmussen wrote:
See 'django-admin hyperkitty_import --help' for more info.
This command is incomplete, you need to specify --settings path-to-settings.py or have DJANGO_SETTINGS_MODULE environment var setup.
(I think settings.py in the previous command should be on PythonPATH).
Alternatively, you can use python manage.py hyperkitty_import --help
.
Is this also valid using Docker-mailman? I don't have a hyperkitty_import django command. How do I import MM2 archives in Docker-MM3?
# docker exec -it mailman-web bash
Here you can do: bash-4.3# python manage.py hyperkitty_import --help
You'd also need to put the archives somewhere it can be seen from
insider the container. The best place I guess would be
/opt/mailman/web/
which is mounted at /opt/mailman-web-data
from
inside the mailman-web container.
bash-4.3# django-admin help
Type 'django-admin help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate runserver sendtestemail shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.).
-- Henrik Rasmussen
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj
participants (4)
-
Abhilash Raj
-
Henrik Rasmussen
-
Mark Sapiro
-
Tom Browder