# When backup fails, delete the useless backup

**URL:** <https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953>\
**Category:** Feature\
**Created:** [27 Luglio 2017, 7:33pm UTC](https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953 "2017-07-27T19:33:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [28 Luglio 2017, 12:18am UTC](https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953/3 "2017-07-28T00:18:44Z")

</div>

> [@pfaffman](#):
>
> If a site backup fails due to disk space when it’s gzipping the backup, the .tar file is left.

It this isn’t happening this is a bug. I’m pretty sure we have code to handle cleanup on failure. Which folder is the backup left in? Is it the tmp folder?

---

_[View the full topic](https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953)._
