# 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 Julio, 2017 19:33 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:** 9

<div class="post-metadata">

**Author:** ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)\
**Post date:** [15 Diciembre, 2017 13:22 UTC](https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953/9 "2017-12-15T13:22:21Z")

</div>

Bump.

The .tar and the final tar.gz both appear in `/var/discourse/shared..../backup` while it is running.

The tar.gz is visible in the web interface at `/admin/backups` while the uploads are being added to it (and it’s size increments up).

When it runs out of space the tar.gz disappears from `/admin/backups`, but the .tar file is still, and the space is not returned (this 4 hours after the backup failed).

---

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