Improved Plan B scripts.
This commit is contained in:
parent
c45eb85610
commit
04d853c8cc
|
@ -48,11 +48,20 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Peupler le dossier de configruation de Borgmatic.
|
# Peupler le dossier de configruation de Borgmatic.
|
||||||
mkdir -p /etc/borgmatic
|
if [ -d /etc/borgmatic ]; then
|
||||||
cd /etc/borgmatic
|
echo "Borgmatic configuration files: PASSED"
|
||||||
URL=https://git.a-lec.org/a-lec/commissions/infrastructure/sauvegardes/-/raw/main/Plan%20Borg/
|
else
|
||||||
wget -nv $URL/models/excludes
|
mkdir -p /etc/borgmatic
|
||||||
wget -nv $URL/models/model-conf-remote-client.yaml -O /etc/borgmatic/config.yaml
|
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.
|
# Vérifier que la configuration Borgmatic.
|
||||||
validate-borgmatic-config
|
validate-borgmatic-config
|
||||||
|
echo "Borgmatic configuration check: DONE."
|
||||||
|
|
||||||
|
echo "ALL OK."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue