Improved Plan B scripts.
This commit is contained in:
parent
c45eb85610
commit
04d853c8cc
|
@ -48,11 +48,20 @@ else
|
|||
fi
|
||||
|
||||
# Peupler le dossier de configruation de Borgmatic.
|
||||
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
|
||||
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."
|
||||
|
||||
|
|
Loading…
Reference in New Issue