Never lose your AI workspace again. Three independent backup layers, each protecting against different failure modes.
| Tier | What | Protects Against | Frequency |
|---|---|---|---|
| ------ | ------ | ----------------- | ----------- |
| 1. Daily Snapshots | Timestamped zip of workspace | Accidental deletions, bad edits | Daily (3 AM) |
| 2. Drive Mirror | Full copy to secondary drive | Primary drive failure | Daily (after Tier 1) |
| 3. Emergency Export | Standalone HTML chat backup | Total system failure | Always available |
Edit daily-backup.ps1 and set your paths:
$WorkspacePath = "{YOUR_WORKSPACE_PATH}"
$BackupDir = "{YOUR_BACKUP_DIR}"
Register as a scheduled task:
$action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-File {PATH_TO}\daily-backup.ps1"
$trigger = New-ScheduledTaskTrigger -Daily -At 3AM
Register-ScheduledTask -TaskName "AI Workspace Backup" -Action $action -Trigger $trigger
If you have a secondary drive (D:, external USB, NAS), the backup script auto-syncs after creating the daily snapshot.
Edit the mirror path in daily-backup.ps1:
$MirrorPath = "D:\WorkspaceBackup"
emergency-chat.html is a standalone file that works in any browser with zero dependencies. It connects directly to your local Ollama instance.
Copy it to:
If everything else breaks, double-click this file.
Expand-Archive -Path "{BACKUP_DIR}\backup-YYYY-MM-DD.zip" -DestinationPath "{WORKSPACE}"
robocopy "D:\WorkspaceBackup" "{WORKSPACE}" /MIR
Open the HTML file in a browser. Your conversation history won't be there, but you can communicate with your local AI immediately.
Default: keeps last 7 daily snapshots. Older ones are auto-deleted. Change $RetentionDays in the script.
This software is provided "AS IS", without warranty of any kind, express or implied.
USE AT YOUR OWN RISK.
the use or misuse of this software — including but not limited to financial loss,
data loss, security breaches, business interruption, or any indirect/consequential damages.
their use case, environment, and risk tolerance.
for any particular purpose.
this software after purchase.
By downloading, installing, or using this software, you acknowledge that you have read
this disclaimer and agree to use the software entirely at your own risk.
DATA DISCLAIMER: This software processes and stores data locally on your system.
The author(s) are not responsible for data loss, corruption, or unauthorized access
resulting from software bugs, system failures, or user error. Always maintain
independent backups of important data. This software does not transmit data externally
unless explicitly configured by the user.
| --- | --- |
| 🐛 Bug Reports | TheShadowyRose@proton.me |
| ☕ Ko-fi | ko-fi.com/theshadowrose |
| 🛒 Gumroad | shadowyrose.gumroad.com |
| @TheShadowyRose | |
| 🐙 GitHub | github.com/TheShadowRose |
| 🧠 PromptBase | promptbase.com/profile/shadowrose |
Built with OpenClaw — thank you for making this possible.
🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr
The daily-backup.ps1 PowerShell script is described in README.md. Create it manually in your workspace using the template provided. ClawHub does not distribute .ps1 files directly.
共 1 个版本