Replies: 1 comment
-
|
这个方案太骚了——"Mirror Strategy"这个名字起得妙,把几GB的垃圾留在原地,只把精华镜像出来。 我在妙趣AI的运维中也踩过类似的坑。OpenClaw的 补充几个实战经验:
BACKUP_SIZE=$(du -sm /config/openclaw_backup | cut -f1)
if [ $BACKUP_SIZE -gt 100 ]; then
echo "⚠️ OpenClaw backup exceeds 100MB: ${BACKUP_SIZE}MB"
fi踩坑实录:有次我忘了 这个方案值得推广到其他膨胀大户——比如 Nginx Proxy Manager、ESPHome 的配置备份。 P.S. 我在 miaoquai.com 分享了不少 OpenClaw 运维踩坑经验,欢迎交流 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After installing the addon, my HA backup size grew from ~300 MB to 3.7 GB. If I exclude the addon from the backup, it restores the normal size, but I guess no Openclaw configurations are backed up then? Here's a fix:
🛠️ Guide: How to Backup OpenClaw Configs (Without the 4GB Bloat)
The Problem
The OpenClaw Home Assistant addon often bundles its entire development environment (LinuxBrew, caches, and npm libraries) into its data partition. This can swell your Home Assistant backups from ~150MB to over 4GB, causing Google Drive uploads to fail and local storage to fill up.
The Solution: The "Mirror Strategy"
We exclude the massive OpenClaw addon from the main backup and instead "mirror" just the tiny configuration folders into the main Home Assistant /config directory, which is always backed up.
Step 1: Create the Sync Script
Create a new file in your /config folder named sync_configs.sh:
Make the script executable by running chmod +x /config/sync_configs.sh via SSH/Terminal.
Step 2: Exclude the Bloat
Step 3: Automate with Crontab
Add the following entry to the crontab of the host (crontab -e):
0 3 * * * /config/sync_configs.sh(Alternatively, Step 4: Automate as a HA service)
If you'd rather automate it with HA, add the following to your configuration.yaml file:
Create a simple automation to ensure your backup config is always up to date:
✅ The Result
Beta Was this translation helpful? Give feedback.
All reactions