Aggiunto config.yml per homer e borg_backup.sh per borg
This commit is contained in:
parent
ee7adec628
commit
f4de17b598
|
@ -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
|
|
@ -0,0 +1,41 @@
|
|||
title: "Homepage"
|
||||
subtitle: "Homer"
|
||||
logo: "assets/logo.png"
|
||||
icon: "fas fa-skull-crossbones"
|
||||
footer: '<p>un piè di pagina meno brutto</p>'
|
||||
|
||||
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"
|
Loading…
Reference in New Issue