diff --git a/.gitignore b/.gitignore index 82e2aee..edcb3d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/keys /temp secrets.env enviroment.env diff --git a/backup.sh b/backup.sh index bb65432..f57c76d 100644 --- a/backup.sh +++ b/backup.sh @@ -5,15 +5,14 @@ source ./enviroment/secret.env source ./enviroment/envireoment.env # Konfigurationsvariablen -WEBDAV_URL="$ENV_WEBDAV_URL" + MOUNT_POINT="$ENV_WEBDAV_MOUNT" -RCLONE_CONFIG="$ENV_RCLONE_CONF" + SFTP_HOST1="$ENV_SFTP_HOST1" DOCKER_HOST="$ENV_DOCKER_HOST" # Nutzerdaten -WEBDAV_USER="$ENV_WEBDAV_BENUTZER" -WEBDAV_PASS="$ENV_WEBDAV_PASSWORD" + SFTP_USER1="$ENV_SFTP_USER1" diff --git a/enviroment/enviroment-template.env b/enviroment/enviroment-template.env index d54f973..01cd042 100644 --- a/enviroment/enviroment-template.env +++ b/enviroment/enviroment-template.env @@ -1,8 +1,8 @@ # .env -ENV_WEBDAV_URL="" -ENV_WEBDAV_MOUNT="" -ENV_RCLONE_CONF="" +ENV_WEBDAV_URL="https://www.kommsafe.de/webdav" +ENV_WEBDAV_MOUNT="/mnt/webdav" +ENV_RCLONE_CONF="/root/.config/rclone/rclone.conf" ENV_DOCKER_HOST="" diff --git a/enviroment/secrets-template.env b/enviroment/secrets-template.env index a723d29..c6806ad 100644 --- a/enviroment/secrets-template.env +++ b/enviroment/secrets-template.env @@ -1,2 +1,4 @@ +# .env + WEBDAV_BENUTZER="dein_benutzername" WEBDAV_PASSWORD="dein_passwort" \ No newline at end of file diff --git a/setup.sh b/setup.sh index 5581c88..d99cc6a 100644 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,15 @@ #!/bin/bash +source ./enviroment/envireoment.env +source ./enviroment/secret.env + +# Variablen +WEBDAV_USER="$ENV_WEBDAV_BENUTZER" +WEBDAV_PASS="$ENV_WEBDAV_PASSWORD" +WEBDAV_URL="$ENV_WEBDAV_URL" +RCLONE_CONFIG="$ENV_RCLONE_CONF" + + # Farben für die Ausgabe GREEN="\033[0;32m" RED="\033[0;31m"