param( [string]$SourceDir = "e:\Zhan\.data", [string]$OutputDir = "e:\Zhan\backups" ) if (!(Test-Path $SourceDir)) { Write-Error "Source data directory not found: $SourceDir" exit 1 } New-Item -ItemType Directory -Force -Path $OutputDir | Out-Null $timestamp = Get-Date -Format "yyyyMMdd_HHmmss" $archivePath = Join-Path $OutputDir ("mvp_cc_data_" + $timestamp + ".zip") Compress-Archive -Path (Join-Path $SourceDir "*") -DestinationPath $archivePath -Force Write-Host "Backup created:" $archivePath