# 夜间备份失败

**URL:** https://meta.discourse.org/t/nightly-backup-fails/109470
**Category:** Support
**Created:** [2019年二月18日 15:55 UTC](https://meta.discourse.org/t/nightly-backup-fails/109470 "2019-02-18T15:55:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jonasth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonasth/32/120324_2.png) [@jonasth](https://meta.discourse.org/u/jonasth)
#### Post date: [2019年二月18日 15:55 UTC](https://meta.discourse.org/t/nightly-backup-fails/109470/1 "2019-02-18T15:55:00Z")

</div>

Hi!

We are using discourse\_docker with Discourse v2.2.0.beta10 +6

Our nightly backup has failed a couple of times during the last month.  
The log says:

```
[2019-02-17 03:31:42] Finalizing backup...
[2019-02-17 03:31:42] Creating archive: forum-2019-02-17-033115-v20190125153345.tar.gz
[2019-02-17 03:31:42] Making sure archive does not already exist...
[2019-02-17 03:31:42] Creating empty archive...
[2019-02-17 03:31:42] Archiving data dump...
[2019-02-17 03:31:43] Archiving uploads...
[2019-02-17 03:34:19] EXCEPTION: /var/www/discourse/lib/backup_restore/backuper.rb:237:in `block in create_archive': Failed to archive uploads.

[2019-02-17 03:34:19] /var/www/discourse/lib/discourse.rb:29:in `execute_command'
/var/www/discourse/lib/backup_restore/backuper.rb:237:in `block in create_archive'
/usr/local/lib/ruby/2.5.0/fileutils.rb:122:in `chdir'
/usr/local/lib/ruby/2.5.0/fileutils.rb:122:in `cd'
/var/www/discourse/lib/backup_restore/backuper.rb:235:in `create_archive'
[...]
[2019-02-17 03:34:19] Deleting old backups...
[2019-02-17 03:34:19] Something went wrong while deleting old backups.
[2019-02-17 03:34:19] Cleaning stuff up...
[2019-02-17 03:34:19] Removing '.tar' leftovers...
[2019-02-17 03:34:19] Unpausing sidekiq...
[2019-02-17 03:34:19] Marking backup as finished...
[2019-02-17 03:34:19] Refreshing disk stats...
[2019-02-17 03:34:21] Notifying 'system' of the end of the backup...

```

Seems like it fails to archive (tar) the backups? But it doesn’t say why.

Regards,  
Jonas

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2019年二月18日 16:10 UTC](https://meta.discourse.org/t/nightly-backup-fails/109470/2 "2019-02-18T16:10:37Z")

</div>

Upgrading should fix it. I recommend you do a rebuild on the console:

```plaintext
./launcher rebuild app

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年二月18日 19:37 UTC](https://meta.discourse.org/t/nightly-backup-fails/109470/3 "2019-02-18T19:37:54Z")

</div>


