bash (4)

Davide Airaghi

Scheduled disks status checks

Having any number of disks connected to your system put you in charge of monitoring their health, acting in the right way when a disk is about to fail is crucial.

Making use of a tool that, when run on a scheduled basis, notify you on screen when a disk is not passing an healthcheck could prevent disaster from occurring.

Let's have a look at a script that could be used as a starting point to create an always on monitoring disk tool.

Continue reading...
Davide Airaghi

Script to monitor backup sets

When self hosting your own backup system it's not that uncommon to have some sort of monitoring system, just to make sure backups are present and exectuted according to the scheduling.

To address this topic I added to my backup hosting server a script that:
- analyze if there are files modified in a specific internal
- use "s-nail" to send email notifications in case of issues

Continue reading...
Davide Airaghi

Borg - server side archives compacter

If you manage backups using Borg Backup you might end up consuming a lot of space on your storage (local and/or remote), even if you have scheduled "borg prune" sessions, you are using deduplication/compression also at file system level, etc. etc. To make room for…

Continue reading...
Davide Airaghi

Raspberry-Pi per monitoraggio visivo

Oltre alla tecnologia e alla programmazione ho l'hobby delle passeggiate in mezzo alla natura e l'osservazione della fauna selvatica, passione che sta crescendo sempre di più con la complicità di mia moglie che è una sfegatata in quest'ambito!

Per unire queste due anime abbiamo deciso di realizzare un piccolo progetto tecnico-naturalistico: installazione di una mangiatoia per piccoli uccelli sul balcone con monitoraggio tramite una videocamera e analisi automatica degli scatti effettuati, con invio periodico delle foto su un server remoto (e annessa pubblicazione su web).

Dal punto di vista strettamente tecnico/materiale il tutto si compone di: - mangiatoia in legno - cibo per uccelli - raspberry-pi model b + sd card con il sistema operativo - scheda di rete wifi usb - videocamera collegata al raspberry - scatola ermetica trasparente - alimentatore 5V 2a micro-usb - prolunga elettrica

Continue reading...