summaryrefslogtreecommitdiff
path: root/docs/backup.md
blob: a69af0255b21d2c977c70552a73c78b45fe645a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
How to backup your Misskey
==========================

Make sure **mongodb-tools** installed.

---

In your shell:
``` shell
$ mongodump --archive=db-backup -u <YourUserName> -p <YourPassword>
```

For details, please see [mongodump docs](https://docs.mongodb.com/manual/reference/program/mongodump/).

Restore
-------

``` shell
$ mongorestore --archive=db-backup
```

For details, please see [mongorestore docs](https://docs.mongodb.com/manual/reference/program/mongorestore/).