#!/bin/sh
#---------#---------#---------#---------#---------#---------#---------#---------
# Title
#   take a directory full of messages and back them up
# Author
#   idc@planetlarg.net 26/03/01
# Description:
#   copy the contents to somewhere safe in case of a sick SMTP process.
#   run this script as the user "mailsrv", or "root" if you are desperate.
#   Run the script "re-mail.pl" to re-queue the messages you move with this
#   script.
# modifications
#
#---------#---------#---------#---------#---------#---------#---------#---------
#
   queue_dir=/data/netscape/ms-isp01.com/msg-isp01.com/queue;

   message_dir=$queue_dir/messages
   cp $message_dir  ${message_dir}.bak
#   rm $message_dir/*

   control_dir=$queue_dir/control
   cp $control_dir  ${control_dir}.bak
#   rm $control_dir/*

   deferred_dir=$queue_dir/deferred
   cp $deferred_dir ${deferred_dir}.bak
#   rm -rf $deferred_dir

