This Munin plugin logs the rdiff_backup statistic data. So you can easily see how many files were changed, removed, incremented or added.
git clone https://github.com/w1nte/rdiff-munin-plugin.git /usr/local/munin/lib/plugins/rdiff-munin-plugin
wget https://raw.githubusercontent.com/w1nte/rdiff-munin-plugin/master/rdiff_backup_ /usr/local/munin/lib/plugins
Use chmod a+x
to make the plugin executable.
chmod a+x /usr/local/munin/lib/plugins/rdiff-munin-plugin/rdiff_backup_
Create a symbolic link rdiff_backup_<folder>
in /etc/munin/plugins/
for each backup folder *.
ln -s /usr/local/munin/lib/plugins/rdiff-munin-plugin/rdiff_backup_ /etc/munin/plugins/rdiff_backup_folder1
* Please note that this is a wildcard plugin. See Wildcard-Plugins for more information.
Create a configuration file rdiff_backup
in /etc/munin/plugin-conf.d
.
[rdiff_backup_*]
user root
group root
[rdiff_backup_folder1]
env.dir /path/to/backupfolder
Install the dependencies if required:
- python3
- python3-dateutil
service munin-node restart
munin-run -d rdiff_backup_folder1