# 无法备份我的开发实例（失败）

**URL:** https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223
**Category:** Support
**Created:** [2018年七月13日 00:55 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223 "2018-07-13T00:55:19Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ParticlProject](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/particlproject/32/100854_2.png) [@ParticlProject](https://meta.discourse.org/u/ParticlProject)
#### Post date: [2018年七月13日 00:55 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/1 "2018-07-13T00:55:19Z")

</div>

Hey,

First time setting up Discourse here! I’m trying to backup my development instance of Discourse as I am ready to host it online, but when going in Admin\>Backups\>Backup, it says Backup Failed. Here’s my log: [[2018-07-12 20:48:43] 'cryptoguard' has started the backup![2018-07-12 20:48:4 - Pastebin.com](https://pastebin.com/rqf127kn)

What’s going wrong here? The instance is installed locally on my Macbook Pro and I want to make a backup to host it on some server.

---

<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: [2018年七月13日 01:36 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/2 "2018-07-13T01:36:17Z")

</div>

Hmm it looks like this is related to

[https://github.com/discourse/discourse/commit/83110a1a812140382167e8f5339c8bde3ee6610d](https://github.com/discourse/discourse/commit/83110a1a812140382167e8f5339c8bde3ee6610d)

```plaintext
[2018-07-12 20:48:45] EXCEPTION: Failed to archive uploads.
tar: Option --warning=no-file-changed is not supported
Usage:
  List: tar -tf <archive-filename>
  Extract: tar -xf <archive-filename>
  Create: tar -cf <archive-filename> [filenames...]
  Help: tar --help

```

Can you try upgrading tar to at least 1.23?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2018年七月13日 01:50 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/3 "2018-07-13T01:50:34Z")

</div>

What worked for me on a mac was installing `gnu-tar` with Homebrew and then adding it to my `PATH` in my `.bash_profile`.

---

<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: [2018年七月13日 01:52 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/4 "2018-07-13T01:52:59Z")

</div>

Hmm @pfaffman can you confirm why this change was needed? It looks like we raised the bar on our `tar` version requirement a lot.

---

<div class="post-metadata">

### Author: ![ParticlProject](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/particlproject/32/100854_2.png) [@ParticlProject](https://meta.discourse.org/u/ParticlProject)
#### Post date: [2018年七月13日 04:13 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/5 "2018-07-13T04:13:32Z")

</div>

I’m on version 1.30 😕

---

<div class="post-metadata">

### Author: ![ParticlProject](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/particlproject/32/100854_2.png) [@ParticlProject](https://meta.discourse.org/u/ParticlProject)
#### Post date: [2018年七月13日 04:21 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/6 "2018-07-13T04:21:26Z")

</div>

That did the trick! Thanks a lot mate 🙏

---

<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: [2018年七月13日 06:16 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/7 "2018-07-13T06:16:14Z")

</div>

Hmm. Seemed like a good idea at the time.

I can’t recall the details, but apparently I was having backups fail because something changed while the backup was happening. The only way that I can think of for files to change during a backup is for something to get moved to tombstone, or a file is being uploaded when tar starts?

I suspect that another solution (other than for luck during a backup) is to turn on read only during backup.

Having to install homebrew to make development work on the Mac does seem onerous. I have been using the gnu utilities for decades, so I didn’t think about them not being available on the Mac.

I guess the simple thing is to revert my change. Or we could test which version of tar is available.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2018年七月13日 15:44 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/8 "2018-07-13T15:44:58Z")

</div>

> [@pfaffman](#):
>
> Having to install homebrew to make development work on the Mac does seem onerous.

Installing Homebrew is a part of the Mac setup guide. If `gnu-tar` needs to be used for compressing backups, then we just need to update [Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772).

---

<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: [2018年七月14日 05:04 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/9 "2018-07-14T05:04:58Z")

</div>

Oh! Then it’s not so much to ask after all!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018年八月13日 05:05 UTC](https://meta.discourse.org/t/cannot-backup-my-development-instance-fails/92223/10 "2018-08-13T05:05:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
