Bug Description
Using openclaw backup create command, if the process is killed due to timeout, large .tmp temporary files are left behind in the current directory without cleanup.
Steps to Reproduce
- Set a short timeout (e.g., 300 seconds)
- Run
openclaw backup create
- Wait for timeout
Actual Impact
- 7 consecutive timeouts accumulated 6 .tmp files totaling 12.6GB
- Disk usage spiked from 56% to 89%
Expected Behavior
- Clean up .tmp files immediately after backup completes
- Use atomic rename to ensure file only appears on success
- Clean up temporary files even on timeout/exception
Environment
Bug Description
Using
openclaw backup createcommand, if the process is killed due to timeout, large .tmp temporary files are left behind in the current directory without cleanup.Steps to Reproduce
openclaw backup createActual Impact
Expected Behavior
Environment