# When backup fails, delete the useless backup

**URL:** <https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953>\
**Category:** Feature\
**Created:** [2017 年 7 月 27 日午後 7: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:** 6

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2017 年 7 月 28 日午前 12:24 UTC](https://meta.discourse.org/t/when-backup-fails-delete-the-useless-backup/66953/6 "2017-07-28T00:24:31Z")

</div>

Well, the site is up to date.

> [@tgxworld](#):
>
> Which folder is the backup left in? Is it the tmp folder?

No. And I thought for a while that perhaps the problem was that it was writing to /tmp and I’ve got a whole separate partition just for backups, so now the site doesn’t crash when the backup fills the disk, but . . . what @falco just said. It could be complicated by having backups somewhere else like this:

```plaintext
 - volume:
      host: /mnt/backups
      guest: /shared/backups

```

If you’ll point me to the file where the script is (about 30% of the time it’s _exactly_ where I think it’ll be) I’ll check & if I can figure it out (and unless it’s something bizarre, finding the script should be 90% of the problem for me) I’ll submit a PR.

---

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