diff --git a/Plan Borg/bin/deploy-remote b/Plan Borg/bin/deploy-remote index 26d7e25..326f6e1 100755 --- a/Plan Borg/bin/deploy-remote +++ b/Plan Borg/bin/deploy-remote @@ -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." +