# Fail-safe environment file write

**Project:** Sites | **Board:** Planned | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/1454-fail-safe-environment-file-write

---

I recently had a situaiton where a server's storage was completely full, but before realising that I tried to edit the `.env` through the Ploi UI. This resulted in a blank file as it coudn't be written. An `.env_safe_save` file was created, but this was also blank.

Could this process be made a bit more robust? Perhaps check that the `.env_safe_save` file was written successfully before trying to overwritre the original `.env`? Or maybe store the safe content in Ploi so it can be recovered from there?
