Fork me on GitHub

This is an old revision of the document!


Monitoring Changes to a Backup Directory

It is possible to monitor what is being backed up by enabling the LBackup rsync session log. There is post action script bundled with LBackup to archive the rsync session log.


This means that LBackup may used to backup and monitor changes to a file system.


Configuration Steps

Assuming you have configured a backup the first step is to enable the rsync session log. To do this add the following directive into your LBackup configuration file :

enable_rsync_session_log="YES"

The next step is to enable archiving of the rsync session log which will be generated by adding this directive to the LBackup configuration file. There is an example post action script bundled with LBackup. To activate logging of the rsync session log file copy the script listed below into the appropriate post-action script directory :

/lbackup/example_backup_config/resources/exmaple-scripts/post-actions/BACKUP-BACKUP-800-ArchiveRsyncSessionLog.bash


This script may need to be modified to meet your requirements. By default you should not find that after LBackup has completed a dated rsync session log will be stored within the log_archive directory.


Configuration Possibilities

If you want to you could take additional steps to enable alerts when a certain file or any file within a directory is modified. Essentially, this allows LBackup to act not only as a backup system but also as a basic trip wire on a production system with minimal additional overheads.