2017-09-06 21:24:32 -07:00
|
|
|
How to backup your Misskey
|
|
|
|
==========================
|
|
|
|
|
2017-09-06 21:26:15 -07:00
|
|
|
Make sure **mongodb-tools** installed.
|
|
|
|
|
2017-09-06 21:26:22 -07:00
|
|
|
---
|
2017-09-06 21:26:15 -07:00
|
|
|
|
2017-09-06 21:23:47 -07:00
|
|
|
In your shell:
|
|
|
|
``` shell
|
2017-12-31 09:14:00 -08:00
|
|
|
$ mongodump --archive=db-backup -u <YourUserName> -p <YourPassword>
|
2017-09-06 21:23:47 -07:00
|
|
|
```
|
|
|
|
|
2018-11-20 04:18:39 -08:00
|
|
|
For details, please see [mongodump docs](https://docs.mongodb.com/manual/reference/program/mongodump/).
|
2017-09-06 21:28:57 -07:00
|
|
|
|
2017-09-06 21:25:47 -07:00
|
|
|
Restore
|
|
|
|
-------
|
|
|
|
|
|
|
|
``` shell
|
|
|
|
$ mongorestore --archive=db-backup
|
|
|
|
```
|
2017-09-06 21:28:57 -07:00
|
|
|
|
|
|
|
For details, please see [mongorestore docs](https://docs.mongodb.com/manual/reference/program/mongorestore/).
|