# Move from direct installation to snap

**URL:** <https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069>\
**Category:** Community Support\
**Created:** [July 1, 2019, 1:46pm UTC](https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069 "2019-07-01T13:46:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephan1827](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@stephan1827](https://forums.rocket.chat/u/stephan1827)\
**Post date:** [July 1, 2019, 1:46pm UTC](https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069/1 "2019-07-01T13:46:35Z")

</div>

Hi,  
since I have quite some issues updating RocketChat to 1.x I thought about moving to snaps. Right now I am using direct installation and I am doing regular backups with mongo tools. When I look at the documentation it seems like the snap backup stores the complete snap container. How would I restore just the database back into a snaps container? Will a mongo backup from 0.74 cause any issue when restored to a 1.x server?

### Server Setup Information

- Rocket Chat: 0.74.3
- Operating System: Ubunutu 18.04.2
- Deployment Method: tar
- Number of Running Instances: 1
- DB Replicaset Oplog: Maybe
- NodeJS Version: 8.11.3
- MongoDB Version: 4.0.10
- Proxy:
- Firewalls involved:

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [July 2, 2019, 4:46pm UTC](https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069/2 "2019-07-02T16:46:02Z")

</div>

You can’t restore a database from one version to another version.

So you can’t restore a 0.74.x to a 1.2.x

Backup from 0.74.3 - Restore to 0.74.3

Have you followed this?

[https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/](https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/)

---

<div class="post-metadata">

**Author:** ![stephan1827](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@stephan1827](https://forums.rocket.chat/u/stephan1827)\
**Post date:** [July 3, 2019, 4:36am UTC](https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069/3 "2019-07-03T04:36:33Z")

</div>

OK, so I understand that I cant migrate the database from one version to the other but how about moving from 0.74 direct installation to 0.74 snap? How would I import the database into the snap?

Stephan

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [July 3, 2019, 3:28pm UTC](https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069/4 "2019-07-03T15:28:16Z")

</div>

Read some of this here.

> <https://github.com/RocketChat/Rocket.Chat/issues/8825#issuecomment-343099724>

The only real issue is when moving between the two types is that snaps use a DB called ‘parties’ and others use ‘rocketchat’

Just read the documentation.

Note if you already have a mongoDB running personally I’d leave it and use just use docker with an ‘external’ DB (not a docker mongo db).

For upgrades I stop Rocket, run a mongo backup, and then do a docker update. Easy.

I’ve used it since I stopped running manual like you around v0.60 and it has so far always worked a treat.

---

<div class="post-metadata">

**Author:** ![stephan1827](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@stephan1827](https://forums.rocket.chat/u/stephan1827)\
**Post date:** [July 4, 2019, 6:48pm UTC](https://forums.rocket.chat/t/move-from-direct-installation-to-snap/4069/5 "2019-07-04T18:48:03Z")

</div>

The idea with docker is actually not that bad. Can you share your docker settings? I used the default settings but it does not connect the mongodb outside the docker. I use bridge mode.

Stephan
