jormungandr-bite/docs/backup.md

23 lines
480 B
Markdown
Raw Normal View History

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