Fresh start - excluded large ROM JSON files
This commit is contained in:
10
scripts/backup-zip.ps1
Normal file
10
scripts/backup-zip.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
$t = "C:\Users\admin\.clawdbot-backup-temp\clawd"
|
||||
$timestamp = Get-Date -Format "yyyy-MM-dd_HHmmss"
|
||||
$b = "P:\Clawdbot-Backups\backup_$timestamp.zip"
|
||||
|
||||
Compress-Archive -Path "$t\*" -DestinationPath $b -Force
|
||||
$s = [math]::Round((Get-Item $b).Length / 1MB, 2)
|
||||
|
||||
Write-Host "Backup complete: $b ($s MB)" -ForegroundColor Green
|
||||
|
||||
Remove-Item -Recurse -Force "C:\Users\admin\.clawdbot-backup-temp" -ErrorAction SilentlyContinue
|
||||
Reference in New Issue
Block a user