You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.5 KiB
1.5 KiB
Migration
From: debian9, sympa 6.2.16
To: debian12, sympa 6.2.70
Future: debian13, sympa 6.2.76
Documentation
- https://www.sympa.community/manual/upgrade/in-place.html
- https://www.sympa.community/manual/upgrade/move.html
export/import
-
on old machine
- wget https://git.artcode.re/cemea/monit-sympa/raw/branch/main/sympa/resources/tools/sympa_export.bash
- chmod +x sympa_export.bash
- ./sympa_export.bash
export (deprecated)
- temp dir
- sympa_domain=$(grep '^domain' /etc/sympa/sympa/sympa.conf | cut -f2)
- temp_dir="$sympa_domain-$(date '+%F')"
- mkdir $temp_dir && cd $temp_dir || echo 'already exist!' && false
-
database backup
- db_name=sympa
- db_user=sympa
- db_passwd=$(grep '^db_passwd' /etc/sympa/sympa/sympa.conf | cut -f2)
- PGPASSWORD=$db_passwd pg_dump -h localhost -U "$db_user" "$db_name" | gzip > "$db_name.psql.gz"
-
tar
- /etc/sympa
- cp /etc/sympa/sympa/sympa.conf .
- /var/lib/sympa
- tar -czvf lib-sympa.tgz /var/lib/sympa
- /var/spool/sympa
- tar -czvf spool-sympa.tgz /var/spool/sympa
- /etc/sympa
import (deprecated)
- database restore
- tar
- /etc/sympa/sympa/sympa.conf
- sympa.pl --upgrade
from miaou-recipe (example sympa3.incus)
- CONTAINER=sympa3
- miaou-create "$CONTAINER"
- miaou/miaou-install-sympa "$CONTAINER"
miaou-install-from-import-sympa
- CONTAINER=sympa3
- miaou/miaou-install-from-import-sympa $CONTAINER ~/Downloads/listes.artcode.re-2025-11-14.sympa