Last changes befor the weekend

This commit is contained in:
Tim Schilling | IuK
2024-11-29 13:18:51 +01:00
parent 86f52430b7
commit b97a69e0e1
2 changed files with 10 additions and 3 deletions
+4 -2
View File
@@ -55,8 +55,8 @@ function dockerremote(){
function sftptransfer(){ function sftptransfer(){
#Einrichten der Variablen für Funktion #Einrichten der Variablen für Funktion
REMOTE_HOST=$2
REMOTE_USER=$1 REMOTE_USER=$1
REMOTE_HOST=$2
REMOTE_DIR=$3 REMOTE_DIR=$3
LOCAL_DIR="./temp" LOCAL_DIR="./temp"
@@ -96,14 +96,16 @@ rclone mount webdav: "$MOUNT_POINT" --daemon --allow-other --umask 002 || {
log "WebDAV-Freigabe erfolgreich gemountet." log "WebDAV-Freigabe erfolgreich gemountet."
dockerremote "$DOCKER_USER" "$DOCKER_HOST" "bw-export-iuk" dockerremote "$DOCKER_USER" "$DOCKER_HOST" "bw-export-iuk"
rm -rf ./webdav/
sftptransfer "$SFTP_USER1" "$SFTP_HOST1" "/sftpuser/export/data/" sftptransfer "$SFTP_USER1" "$SFTP_HOST1" "/sftpuser/export/data/"
mv ./temp/* ./webdav/ mv ./temp/* ./webdav/
# Webdav Unmounten # Webdav Unmounten
log "Unmounten der WebDAV-Freigabe..." log "Unmounten der WebDAV-Freigabe..."
if mountpoint -q "$MOUNT_POINT"; then if mountpoint -q "$MOUNT_POINT"; then
+6 -1
View File
@@ -4,7 +4,7 @@
WEBDAV_USER="tim.schilling@koenigsbrunn.de" WEBDAV_USER="tim.schilling@koenigsbrunn.de"
WEBDAV_PASS="HgdKS-P2004!" WEBDAV_PASS="HgdKS-P2004!"
WEBDAV_URL="https://www.kommsafe.de/webdav/Stadt%20K%C3%B6nigsbrunn/IuK/Schilling" WEBDAV_URL="https://www.kommsafe.de/webdav/Stadt%20K%C3%B6nigsbrunn/IuK/KITL-VaultWarden%20Backups"
RCLONE_CONFIG="/root/.config/rclone/rclone.conf" RCLONE_CONFIG="/root/.config/rclone/rclone.conf"
# Farben für die Ausgabe # Farben für die Ausgabe
@@ -59,4 +59,9 @@ EOF
chmod 600 "$RCLONE_CONFIG" chmod 600 "$RCLONE_CONFIG"
log "rclone-Konfiguration gespeichert unter $RCLONE_CONFIG." log "rclone-Konfiguration gespeichert unter $RCLONE_CONFIG."
useradd $bak_user
log "Vorbereitungen abgeschlossen" log "Vorbereitungen abgeschlossen"