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.
949 B
949 B
Migration
From: debian9, sympa 6.2.16
To: debian12, sympa 6.2.70
Documentation
- https://www.sympa.community/manual/upgrade/in-place.html
- https://www.sympa.community/manual/upgrade/move.html
export
- 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
- database restore
- tar
- /etc/sympa/sympa/sympa.conf