From a7c775a27bd36d58abfe5224213c4299f029d1f4 Mon Sep 17 00:00:00 2001 From: maniac Date: Mon, 8 Jun 2026 14:44:40 +0200 Subject: [PATCH] Add f3 to databases list and cleanup loop --- push-dump.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/push-dump.ps1 b/push-dump.ps1 index 85ff05a..57b8e67 100644 --- a/push-dump.ps1 +++ b/push-dump.ps1 @@ -14,7 +14,7 @@ $lockFile = "C:\lexware-db-connect\push-dump.lock" $maxLines = 500 # Datenbanken die gedumpt werden sollen -$databases = @("f1", "f2", "lexkonto", "lexkk", "rk", "lxoffice", "lx", "lxcatalog") +$databases = @("f1", "f2", "f3", "lexkonto", "lexkk", "rk", "lxoffice", "lx", "lxcatalog") $utf8NoBom = [System.Text.UTF8Encoding]::new($false) @@ -122,7 +122,7 @@ $lines = Get-Content $hbaFile | Where-Object { $_ -notmatch "lxdump" } # --- 6. Alte Dumps auf Linux aufraemen (nur letzte 5 pro DB behalten) --- & ssh -i $sshKey -o StrictHostKeyChecking=no root@192.168.115.113 @" -for db in f1 f2 lexkonto lexkk rk lxoffice lx lxcatalog; do +for db in f1 f2 f3 lexkonto lexkk rk lxoffice lx lxcatalog; do ls -t /opt/lexware-dumps/\${db}_*.dump 2>/dev/null | tail -n +6 | xargs -r rm -f done "@ 2>&1 | Out-Null