Initial import with GitLab CI/CD and registry deploy flow
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user