lmail manual

About

The 'lmail' command allows you to archive and email an lbackup log file. The 'lmail' command options are configured by an lmail.conf file which you pass into the command as the first argument.

When to Use

The 'lbackup' command may call the 'lmail' command if there is a problem during the backup or if you set 'lmail' to run at the end of a backup. It is possible to start the 'lmail' command directly within and interactive shell, from within a script or for automated email reporting, from a scheduling daemon such as 'cron'.

Usage Examples

Before you start your backup you will need a generate an 'lmail' configuration file. In addition, this configuration file expects there to be an archive directory for storing logs which have been emailed. The configuration directory structure of LBackup allows for advanced configuration of each backup and even each mail with pre and post backup and mail scripts. There is an example configuration installed into the following path when you install lbackup : /lbackup/example_mail_config.

Usage examples : 
   starting a basic mail report : /usr/local/sbin/lmail /lbackup/basic_backup_test/basic_mail_test.conf
   generic usage                : /usr/local/sbin/lmail /path/to/your/lmail.conf

If you are using the bash shell then you can use the alias function as specified in the help :

alias start_mail="/usr/local/sbin/lmail /path/to/your/lmail"

Then you can simply start your mail report with the command listed below :

 
Usage examples if you have configured your bash profile with an alias and you use the bash shell :   
  begin backup as configured in your profile :  start_mail

If you are having problems then please ask for help on the LBackup mailing list or contact Lucid Information Systems for support.



Helpful Links