Improved Plan B scripts.

This commit is contained in:
Christian P. MOMON 2023-03-16 10:40:05 +01:00
parent c45eb85610
commit 04d853c8cc
1 changed files with 14 additions and 5 deletions

View File

@ -48,11 +48,20 @@ else
fi
# Peupler le dossier de configruation de Borgmatic.
if [ -d /etc/borgmatic ]; then
echo "Borgmatic configuration files: PASSED"
else
mkdir -p /etc/borgmatic
cd /etc/borgmatic
URL=https://git.a-lec.org/a-lec/commissions/infrastructure/sauvegardes/-/raw/main/Plan%20Borg/
wget -nv $URL/models/excludes
wget -nv $URL/models/model-conf-remote-client.yaml -O /etc/borgmatic/config.yaml
echo "Borgmatic configuration files: DONE"
fi
# Vérifier que la configuration Borgmatic.
validate-borgmatic-config
echo "Borgmatic configuration check: DONE."
echo "ALL OK."