Welcome to Davide Airaghi's website ! 

In this website you'll find some information about me, some tips&tricks and some software i worked on.

 

Davide Airaghi

Contabo API - automated snapshot creation

Using VPS instances provided by Contabo could be quite easy and not that expensive, but keep in mind to always have some backup at hand and to always keep at least a single snapshot of each instance (a single snapshot is included in the standard plan).

Not forgetting this layer of data preservation could help a lot and speed up recovery processes, so ... why not having this procedures fully automated and run by some Linux system ?

Let's have a look at a possible script ...

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

Docker: Update all the images

If you want to pull and update all the images you have so far downloaded (and are still present on your system) using docker you can execute the following command: for IMAGE in $( LANG=en docker image ls -a --format table | grep -v -E "^REPOSITORY"…

Continue reading...
Davide Airaghi

Docker - ricerca immagine contenente un layer

Può essere utile, dato l'identificativo di un layer, andare a cercare in quali immagini esso è usato. Per questa semplice operazione è possibile utilizzare lo script docker-find-layer-image riportato qui di seguito. #!/bin/bashLAYER=$1if [ "$LAYER" = "" ]; then echo "" echo "Layer not given as…

Continue reading...