blob: 97857f4583d74c15a95ee96d377753eed029327a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
DIR=/var/backups/mailman/
[ -d $DIR ] || mkdir -p $DIR
for i in $(/usr/lib/mailman/bin/list_lists -b); do
for j in admins members owners; do
/usr/lib/mailman/bin/list_${j} > $DIR/${i}.${j}
done
/usr/lib/mailman/bin/config_list -o $DIR/${i}.config ${i}
done
[ -d $DIR/archives ] || mkdir -p $DIR/archives
# TODO use rsync
cp -R -f /var/lib/mailman/archives/private/* $DIR/archives/
|