Backup Monitoring

Setup

Mount the Samba Share

sudo apt install cifs-utils psmisc
sudo mount -t cifs -o username=$NAS_USER,password=$NAS_PASSWORD //$NAS_IP/home/ /mnt/nas/home

Install checkback:

go install github.com/edthedev/checkback
which checkback

Manual Check

checkback -path /mnt/nas/home/Backup/blaster/home/edward/minetest/worlds/SurfaceWorld/map.sqlite

Add to WTFUtil

Add to WTFUtil config file:

mods:
    check_backups:
      title: "Backups"
      cmd: "checkback"
      args: ["-path", "/mnt/nas/home/Backup/blaster/home/edward/minetest/worlds/SurfaceWorld/map.sqlite"]
      enabled: true