#!/bin/sh ### ### Simple script to backup all our list configs, just in case anything ### ever happens to the Mailman files (they get corrupted, etc.), and ### also so that our list configurations are saved and included in any ### regular backups of the home filetree on this server. ### ### Originally named backup_list_configs.sh but stripped off the .sh ### so folks can view the file online without having to download it. ### ### Anthony R. Thompson, June 2010 ### Contact: put @ between art and sigilservices.com ### ### Copyright (C) 1998-2010 by the Free Software Foundation, Inc. ### ### This program is free software; you can redistribute it and/or ### modify it under the terms of the GNU General Public License ### as published by the Free Software Foundation; either version 2 ### of the License, or (at your option) any later version. ### ### This program is distributed in the hope that it will be useful, ### but WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ### GNU General Public License for more details. ### ### You should have received a copy of the GNU General Public License ### along with this program; if not, write to the Free Software ### Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ### 02110-1301, USA. http://www.fsf.org/licensing/licenses/gpl.html ### MM_BIN_DIR=/usr/lib/mailman/bin # INSTALL SAVE_DIR=$HOME/conf # INSTALL for list in `$MM_BIN_DIR/list_lists -b | egrep -v '^mailman$'`; do $MM_BIN_DIR/config_list -o - $list > $SAVE_DIR/$list.listconfig; done # To restore list config from a .listconfig file, do something like # /usr/lib/mailman/bin/config_list -i listname.listconfig listname