# Restore data with new version

**URL:** <https://community.zammad.org/t/restore-data-with-new-version/12964>\
**Category:** Technical assistance\
**Created:** [December 27, 2023, 10:05am UTC](https://community.zammad.org/t/restore-data-with-new-version/12964 "2023-12-27T10:05:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ours](https://community.zammad.org/letter_avatar_proxy/v4/letter/o/f6c823/32.png) [@Ours](https://community.zammad.org/u/Ours)\
**Post date:** [December 27, 2023, 10:05am UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/1 "2023-12-27T10:05:46Z")

</div>

- Used Zammad version: 5.3.1
- Used Zammad installation type: docker-compose

### Expected behaviour:

- I want to update my zammad environment, I’m on an old version 5.3.1 and I want to upgrade to 6.2.

I have git clone the new git folder with the docker composed :

> **[GitHub - zammad/zammad-docker-compose: Zammad Docker images for docker-compose &...](https://github.com/zammad/zammad-docker-compose/tree/master)**
>
> master

I have docker-compose run this stack and all is good.

Now I’d like to migrate my data from the old version to the new one.  
To do this I’m taking a backup of the old one: 2 files: database (postgres) 2023-12-27\_07-45-00\_zammad\_db.psql  
+  
fichiers 2023-12-27\_07-45-00\_zammad\_files.tar.gz

I used to use this tutorial for migration: [selfhosted-apps-docker/zammad at master · DoTheEvo/selfhosted-apps-docker · GitHub](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/zammad#backup-and-restore)

but now the volume : /var/lib/docker/volumes/zammad-docker-compose\_zammad-data/\_data/  
doesn’t exist anymore… how to do ? where do I put my file archives ?

Ours

---

<div class="post-metadata">

**Author:** ![Ours](https://community.zammad.org/letter_avatar_proxy/v4/letter/o/f6c823/32.png) [@Ours](https://community.zammad.org/u/Ours)\
**Post date:** [December 27, 2023, 10:22am UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/2 "2023-12-27T10:22:48Z")

</div>

i have another problem. When I want migrate databases. I can’t login with psql…

 ![image](https://community.zammad.org/uploads/default/original/2X/1/1da2979641b8a0450272723b0b0adf2bab83b978.png)

---

<div class="post-metadata">

**Author:** ![inevitable](https://community.zammad.org/user_avatar/community.zammad.org/inevitable/32/8026_2.png) [@inevitable](https://community.zammad.org/u/inevitable)\
**Post date:** [December 27, 2023, 2:40pm UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/3 "2023-12-27T14:40:51Z")

</div>

You need to provide user & db.  
Try with this:

```auto
psql -U zammad -d zammad_production

```

---

<div class="post-metadata">

**Author:** ![Ours](https://community.zammad.org/letter_avatar_proxy/v4/letter/o/f6c823/32.png) [@Ours](https://community.zammad.org/u/Ours)\
**Post date:** [December 27, 2023, 4:14pm UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/4 "2023-12-27T16:14:37Z")

</div>

yes! it’s working. and for my main request, do you have any ideas?

---

<div class="post-metadata">

**Author:** ![inevitable](https://community.zammad.org/user_avatar/community.zammad.org/inevitable/32/8026_2.png) [@inevitable](https://community.zammad.org/u/inevitable)\
**Post date:** [December 27, 2023, 4:49pm UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/5 "2023-12-27T16:49:18Z")

</div>

> [@Ours](#):
>
> /var/lib/docker/volumes/zammad-docker-compose\_zammad-data/\_data/

As I can see, this is the old tutorial with Zammad 4.0 version, so I assume you can’t have that volume.

Did you try first to upgrade directly from your current version to the newest?

---

<div class="post-metadata">

**Author:** ![Ours](https://community.zammad.org/letter_avatar_proxy/v4/letter/o/f6c823/32.png) [@Ours](https://community.zammad.org/u/Ours)\
**Post date:** [December 28, 2023, 11:09am UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/6 "2023-12-28T11:09:45Z")

</div>

I’ve just tried, I’ve modified the repo and the image verison but it doesn’t work… I get this error :

 ![image](https://community.zammad.org/uploads/default/original/2X/d/de505776b4e3c64d56512e680b54dd43d4e835c4.png)

for the versions, I’ve taken the one from this docker-compose : [zammad-docker-compose/docker-compose.yml at master · zammad/zammad-docker-compose · GitHub](https://github.com/zammad/zammad-docker-compose/blob/master/docker-compose.yml)

but I didn’t copy the environment variables

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [December 22, 2024, 11:09am UTC](https://community.zammad.org/t/restore-data-with-new-version/12964/7 "2024-12-22T11:09:57Z")

</div>

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