diff --git a/borg/borg_backup.sh b/borg/borg_backup.sh new file mode 100644 index 0000000..37fc404 --- /dev/null +++ b/borg/borg_backup.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# LO SCRIPT MANTIENE IL SEGUENTE NUMERO DI BACKUP: +# GIORNALIERI = 7 aka 1 settimana +# SETTIMANALI = 4 aka 1 mese +# MENSILI = 6 aka 6 mesi +# ANNUALI = 0 + +# ----------------------------------------------- + +DIRECTORIES='/home/docker' +BACKUP='/home/borg/docker_backup' +LOGFILE='/home/borg/borg_backup.log' + +NOW=$(date +"%Y-%m-%d | %H:%M | ") +echo "$NOW - Avvio del Backup e della Pulizia" >> $LOGFILE + +# CREA NUOVI BACKUP NELLA CARTELLA IMPOSTATA +borg create \ + $BACKUP::'{now:%s}' \ + $DIRECTORIES \ + \ + --compression zstd \ + --one-file-system \ + --exclude-caches \ + --exclude-if-present '.nobackup' \ + +# CANCELLA I VECCHI BACKUP, SE NECESSARIO +borg prune -v --list $BACKUP \ + --keep-daily=7 \ + --keep-weekly=4 \ + --keep-monthly=6 \ + --keep-yearly=0 \ + +echo "$NOW Done" >> $LOGFILE +echo '------------------------------' >> $LOGFILE diff --git a/homer/config.yml b/homer/config.yml new file mode 100644 index 0000000..515606d --- /dev/null +++ b/homer/config.yml @@ -0,0 +1,41 @@ +title: "Homepage" +subtitle: "Homer" +logo: "assets/logo.png" +icon: "fas fa-skull-crossbones" +footer: '

un piè di pagina meno brutto

' + +links: + - name: "Font Awesome Icons Gallery" + icon: "fab fa-fort-awesome" + url: "https://fontawesome.com/icons?d=gallery" + - name: "Libredd.it /r/SelfHosted" + icon: "fab fa-reddit" + url: "https://libredd.it/r/selfhosted/" + +services: + - name: "Main" + icon: "fab fa-docker" + items: + - name: "Bookstack" + logo: "/assets/tools/bookstack.png" + subtitle: "Appunti e altro" + url: "https://book.example.com" + - name: "Bitwarden" + logo: "/assets/tools/bitwarden.png" + subtitle: "Password Manager" + url: "https://passwd.example.com" + - name: "Nextcloud" + logo: "/assets/tools/nextcloud.png" + subtitle: "File Sync & Share" + url: "https://nextcloud.example.com" + - name: "Monitor" + icon: "fas fa-heartbeat" + items: + - name: "Prometheus + Grafana" + logo: "/assets/tools/grafana.png" + subtitle: "Analytiche & Dashboard" + url: "https://grafana.example.com" + - name: "Portainer" + logo: "/assets/tools/portainer.png" + subtitle: "Docker Manager" + url: "https://portainer.example.com" \ No newline at end of file