Move 150+ scripts from root and scripts/ into client/project directories: - clients/dataforth/scripts/ (110 files: AD2, sync, SSH, DB, DOS scripts) - clients/bg-builders/scripts/ (14 files: Lesley mgmt, Exchange, termination) - clients/internal-infrastructure/scripts/ (10 files: GDAP, Gitea, backups) - projects/msp-tools/scripts/ (9 files: CIPP, MSP onboarding, Datto) - projects/gururmm-agent/scripts/ (3 files: API test, JWT, record counts) - clients/glaztech/scripts/ (1 file: CentraStage removal) Also reorganized: - VPN scripts → infrastructure/vpn-configs/ - Retrieved API/JS files → api/ - Forum posts → projects/community-forum/forum-posts/ - SSH docs → clients/internal-infrastructure/docs/ - NWTOC/CTONW docs → projects/wrightstown-smarthome/docs/ - ACG website files → projects/internal/acg-website-2025/ - Dataforth docs → clients/dataforth/docs/ - schema-retrieved.sql → docs/database/ Deleted 24 tmp_*.ps1 one-off debug scripts (preserved in git history). Root reduced from 220+ files to 62 items (docs + directories only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
48 lines
1.6 KiB
PowerShell
48 lines
1.6 KiB
PowerShell
# Find TS-XX machine folders with Backup subdirectories
|
|
$testPath = "\\192.168.0.6\test"
|
|
|
|
Write-Host "Searching for TS-XX machine folders with Backup subdirectories..."
|
|
Write-Host ""
|
|
|
|
# Get all directories matching TS-*
|
|
$tsFolders = Get-ChildItem -Path $testPath -Directory -Filter "TS-*" -ErrorAction SilentlyContinue
|
|
|
|
if ($tsFolders) {
|
|
Write-Host "Found $($tsFolders.Count) TS-XX folders:"
|
|
Write-Host ""
|
|
|
|
foreach ($folder in $tsFolders) {
|
|
$backupPath = Join-Path $folder.FullName "Backup"
|
|
|
|
Write-Host "Machine: $($folder.Name)"
|
|
|
|
if (Test-Path $backupPath) {
|
|
Write-Host " [OK] Backup folder exists: $backupPath"
|
|
|
|
# Check for files in backup folder
|
|
$backupFiles = Get-ChildItem -Path $backupPath -ErrorAction SilentlyContinue
|
|
if ($backupFiles) {
|
|
Write-Host " Files: $($backupFiles.Count) items"
|
|
|
|
# Show most recent file
|
|
$latestFile = $backupFiles | Where-Object { -not $_.PSIsContainer } | Sort-Object LastWriteTime -Descending | Select-Object -First 1
|
|
if ($latestFile) {
|
|
Write-Host " Latest: $($latestFile.Name)"
|
|
Write-Host " Date: $($latestFile.LastWriteTime)"
|
|
Write-Host " Size: $([math]::Round($latestFile.Length / 1KB, 2)) KB"
|
|
}
|
|
} else {
|
|
Write-Host " [EMPTY] No files in backup folder"
|
|
}
|
|
} else {
|
|
Write-Host " [MISSING] No Backup folder"
|
|
}
|
|
|
|
Write-Host ""
|
|
}
|
|
} else {
|
|
Write-Host "No TS-XX folders found in $testPath"
|
|
}
|
|
|
|
Write-Host "Search complete."
|