# Backing up and restoring Rocket.Chat? (Docker)

**URL:** <https://forums.rocket.chat/t/backing-up-and-restoring-rocket-chat-docker/13216>\
**Category:** Community Support\
**Created:** [February 5, 2022, 9:20pm UTC](https://forums.rocket.chat/t/backing-up-and-restoring-rocket-chat-docker/13216 "2022-02-05T21:20:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [February 7, 2022, 5:51pm UTC](https://forums.rocket.chat/t/backing-up-and-restoring-rocket-chat-docker/13216/2 "2022-02-07T17:51:50Z")

</div>

Hi!

There is a nice post here on forums regarding this:

> [@\[HOW TO\] Docker backup mongo](https://forums.rocket.chat/t/how-to-docker-backup-mongo/11155):
>
> This question is asked frequently. How do I backup and restore a mongo DB in a docker container. We first need to find the container label. You may need sudo for the following commands. docker ps -a NAMES docker\_mongo\_1 So we need to do this: docker exec docker\_mongo\_1 sh -c 'mongodump --archive' \> db.dump And in the current directory you should find db.dump Restore should be the reverse process: docker exec -i docker\_mongo\_1 sh -c 'mongorestore --archive' \< db.dump This is quite a go…

---

_[View the full topic](https://forums.rocket.chat/t/backing-up-and-restoring-rocket-chat-docker/13216)._
