Page:
7.1.5 Testing
Pages
0. Overview
1.0 Quick start
2.0 Installation
2.1 Configuration notes
2.2 Run as root
3.0 Script parameters
4.0 Configuration details file
4.1 Extra backup locations
4.2 Excluded backup locations
4.3 Prune timeframe examples
4.4 Configuration examples
5.0 503 functionality
6.0 Scheduling via cron
7.0 Logs
7.1 Using logwatch
7.1.1 Logfile Group file
7.1.2 Service definition file
7.1.3 Service script
7.1.4 Timestamp processing
7.1.5 Testing
8.0 Restore overview
8.1 Restore extract
8.2 Restore install mailcow
8.3 Restore restoring data
8.3.1 Restore manual restore
9.0 Final notes
2
7.1.5 Testing
Asif Bacchus edited this page 2020-05-24 03:43:39 -06:00
Table of Contents
testing
Run logwatch --help and note the options. You can test just this service locally on your screen with the following command (assuming you kept default names for everything):
# Summary output, entire duration of log file
logwatch --service backup --output stdout --format text --range all --detail 0
# Minimal detail, yesterday only
logwatch --service backup --output stdout --format text --range yesterday --detail 3
# Verbose output, today only
logwatch --service backup --output stdout --format text --range today --detail 5
final notes
I'm a horrible PERL programmer so if anyone can optimize/improve the script file used for Logwatch then please do it! Otherwise, I hope this made sense and helped you integrate the backup script with Logwatch for easy monitoring :-) Please file any questions/comments/suggestions you have in the issues section. If you want to contribute, file a pull-request. Thanks!