Backups

- NAME
- Directions:
- AUTHOR
- COPYRIGHT

# NAME

mojo_backup.pl - a simple list backup utility for Mojo Mail

# Directions:

Where are your perl Libraries?
  Since this script is supposed to be run via a cron job, (although it will work fine using from the command line) you usually have to type the entire path to your Perl Libraries.

  example:

              use lib '/usr/local/lib/perl5/site_perl/5.005/';

Where are Mojo Mail's Libraries?
  Mojo Mail uses variables that are stuffed in the Config.pm file to figure out where the lists are, among other things.

  example:

              use lib '/usr/home/account/public_html/cgi-bin/mojo';

Where are the backup files going?
  Makes sure this script has read and write permisssions to this directory

  example:

              my $backup_lists = '/usr/home/account/backup_lists';

Where is the backup log?
  mojo_backup.pl will keep a log of what it's doing so you're not left in the dark if something goes awry

  example:

              my $mojo_backup_log = "$backup_lists/mojo_backup.log";

When should mojo_backup.pl remove old files?
  It'll remove EVERYTHING in the $backup_lists directory except the backup file, if it find it. This is in days

  example:

              my $remove_after = 1;

How do you want your backup lists named?
  Things in brackets will be replaced with what they really are, so [year] will be replaced with 2001, etc

  you have

              [list_name] [year] [month] [day] [hour] [minute] [second]

  to choose from

  example:

              my $backup_name = '[list_name].list-[year][month][day][hour][minute][second]';

Want to send this backup report to someone?
  place their e-mail address in this variable, and they'll get a copy as well

  example:

              my $email_log_to = 'you@here.com';

Echo?
  Finally, if you run this script interactively quite a bit, you may want to have a copy of the report printed out in the terminal, so you can figure out what's going on, just set this variable to 1;

  example:

              my $echo_log = 0;

# AUTHOR

Justin Simoni

creative@justinsimoni.com

http://justinsimoni.com

# COPYRIGHT

Copyright (c) 1999 - 2002 Justin Simoni (justin@skazat.com) http://skazat.com All rights reserved.

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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.