# Recovery from $docker save

**URL:** https://meta.discourse.org/t/recovery-from-docker-save/120071
**Category:** Support
**Created:** [June 11, 2019, 8:38pm UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071 "2019-06-11T20:38:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![brightrmn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brightrmn/32/143567_2.png) [@brightrmn](https://meta.discourse.org/u/brightrmn)
#### Post date: [June 11, 2019, 8:38pm UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/1 "2019-06-11T20:38:43Z")

</div>

Hi,  
Please tell me how to restore the discourse with a backup of the docker backup.

```bash
docker save -o container-file-name.tar containername

```

When I try to rebuild it, I get it:

```bash
Already up-to-date.
I, [2019-06-11T20:14:10.852580 #14] INFO -- : Loading --stdin
/pups/lib/pups/config.rb:23:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
	from /pups/lib/pups/cli.rb:27:in `new'
	from /pups/lib/pups/cli.rb:27:in `run'
	from /pups/bin/pups:8:in `<main>'

```

I don’t have any other archives or backups, just this archive.  
Please tell me where in this archive there is a database and related files.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 11, 2019, 8:46pm UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/2 "2019-06-11T20:46:23Z")

</div>

> [@brightrmn](#):
>
> Please tell me how to restore the discourse with a backup of the docker backup.

That won’t work. `docker save` only stores the docker image, and all the stuff you want to backup (posts, users, uploads) are stored outside the image, in the mounted volumes.

> [@brightrmn](#):
>
> I don’t have any other archives or backups, just this archive.

I’m afraid you lost all data them ☹

---

<div class="post-metadata">

### Author: ![brightrmn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brightrmn/32/143567_2.png) [@brightrmn](https://meta.discourse.org/u/brightrmn)
#### Post date: [June 11, 2019, 8:57pm UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/3 "2019-06-11T20:57:54Z")

</div>

Many thanks for the quick response, I will try to google cache.

---

<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: [June 12, 2019, 10:50am UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/4 "2019-06-12T10:50:27Z")

</div>

Just to make sure. You don’t have the contents of

```
/var/discourse/shared

```

?

---

<div class="post-metadata">

### Author: ![brightrmn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brightrmn/32/143567_2.png) [@brightrmn](https://meta.discourse.org/u/brightrmn)
#### Post date: [June 15, 2019, 5:08pm UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/5 "2019-06-15T17:08:48Z")

</div>

It was empty.  
I unzipped all layers and searched with [ack](https://beyondgrep.com/), my data, everything I found the logs.  
Great lesson on why I need to make backups 🙂

---

<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: [November 22, 2022, 2:21am UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/6 "2022-11-22T02:21:01Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 22, 2022, 6:51am UTC](https://meta.discourse.org/t/recovery-from-docker-save/120071/7 "2022-11-22T06:51:33Z")

</div>


