Jul 2, 2026, 9:40 AM

This commit is contained in:
Paweł Domański
2026-07-02 07:40:50 +00:00
parent 1542c34779
commit bd4564ff58
+2 -1
View File
@@ -105,7 +105,8 @@ foreach ($folder in $FoldersToProcess) {
Write-Host " Sprawdzanie i przygotowywanie docelowego folderu na S3: $S3DestinationParent/$CurrentYear/" -ForegroundColor Gray
# 1. Tworzenie folderu na S3 (rclone mkdir upewni się, że struktura istnieje)
& $RcloneExePath mkdir "$S3Destination"
# Tłumimy ostrzeżenie (2>$null), ponieważ S3 to "object storage" i ostrzega, że nie obsługuje pustych folderów.
& $RcloneExePath mkdir "$S3Destination" 2>$null
Write-Host " Folder gotowy. Rozpoczynam transfer danych..." -ForegroundColor Green
$LogFile = Join-Path $LogDir "rclone_backup_$($folder)_$(Get-Date -Format 'yyyyMMdd_HHmmss').log"