FoundKey/docs/backup.md

23 lines
479 B
Markdown
Raw Normal View History

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