Package: bakauditor
bakauditor - Backup AuditorWhat is thisbakauditoris an automatic backup auditor robot.All of us have backups. Every day something is backing up on background of our
desktops and somewhere on our servers. But what if backup has been failed and
you haven't even received an alert about it? Probably you'll find you miss
important backups only when your system is crashed and you need them.People, who faced this problem at least once in a life, usually manually audit
their backups from time to time. That's why I've decided to automate this
boring stuff once and forever and createdbakauditor.What can it doCurrently,bakauditorsupports backup audit via plugins:filecheck backup, stored in file (modification time, min. size etc.)dirget most recent file in directory and check it likefiledoeszfscheck if ZFS snapshots exists on local or remote systemborgborg backup repositories, local or remoteHow to useJust runbakauditorand it will show you list of all your backups and their status.You may also runbakauditor-xIn this case, only failed backups are printed, otherwise you get a message:Checked: 14, failed: 0

All backups are finebakauditorprocess exits with code0when everything is fine, and with
error codes when something is wrong. So you may just get its output and send
via e-mail or what you prefer when something is wrong. And e.g. weekly receive
output even if everything is fine, to checkbakauditoris running and all
your backups are safe.Installationpip3installbakauditorConfigurationPut configuration file to/usr/local/etc/bakauditor.yml. This is YAML file
and it has the following sections.default sectiondefault:time:2dmin-size:10000000Options in this section apply to all backup configurations, unless overriden.The size may be specified in bytes, you may also use suffix "K" for Kbytes
(kilobytes, not kibitytes, 1K = 1000 bytes), "M" for MBytes, "G" for Gbytes,
"T" for TBytes.fileExample:server1:type:filepath:/export/backups/server1/server1.dump.gztime:3dmin-size:10000000In the above example, we askbakauditorto check backup stored in the
specified file, the file should not be older than 3 days and have a minimal
size of 10 megabytes to be considered as good backup.Optionstimeandmin-sizeare optional if specified indefaultsection.directoryExample:server1:type:dirpath:/export/backups/server1time:3dmin-size:10000000This example will to the same as previous, but automatically get the most
recent file in the specified directory and check it. Good, when you do e.g.
incremental backups.directory of directoriesExample:server1:type:dodpath:/export/backups/somebackuptime:3dmin-size:This example considers backups are stored in separate directories inside
"somebackup" directory. The program will find most recently created directory
and calculate its total size.zfsExample:server1:type:zfstime-fmt:"snapshot-%Y-%m%-%d-%H:%M:%S"fs:bakpool/server1Optiontime-fmtis used to get snapshot creation time from snapshot name.  We
can not determine when ZFS snapshot has been created (unless we performzfs
get creationfor every snapshot, which could be pretty slow), but if snapshot
name contains time, we can decode it and check.Optionfsspecifies file system, where snapshots are located.Optionally, you may askbakauditorto analyze ZFS snapshot on remote server
via ssh, specifyingsshoption:server1:type:zfstime-fmt:"snapshot-%Y-%m%-%d-%H:%M:%S"fs:bakpool/server1ssh:root@192.168.1.77This option is just converted to commandssh <option_value> zfs list ...so
you may specify any options for ssh program you like.Note:min-sizeoption for zfs snapshots is ignored.borgExample:borg-local:type:borgrepo:/bakpassword:123To check repo on remote system, add "ssh" option.Note: plugin requiresborg>= 1.1.0, for older version useborg0instead
(doesn't check backup size).TODOplugins forbaculaHP Data ProtectorVMWare DPAcronisetc.