From 4d01acffdc92d9a9c7e7aa2344c43f6d79635ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Thu, 7 Sep 2017 13:23:47 +0900 Subject: [PATCH 1/6] Create backup.md --- docs/backup.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/backup.md diff --git a/docs/backup.md b/docs/backup.md new file mode 100644 index 000000000..155170c36 --- /dev/null +++ b/docs/backup.md @@ -0,0 +1,6 @@ +In your shell: +``` shell +$ mongodump --archive=db-backup +``` + +Make sure **mongodb-tools** installed. From 8c355b4223eb97447f71994fc50ebbaafc4584e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Thu, 7 Sep 2017 13:24:32 +0900 Subject: [PATCH 2/6] Update backup.md --- docs/backup.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/backup.md b/docs/backup.md index 155170c36..61b05764a 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -1,3 +1,6 @@ +How to backup your Misskey +========================== + In your shell: ``` shell $ mongodump --archive=db-backup From 6e8f309b5d761a01a42a89311b772db2fe0c1186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Thu, 7 Sep 2017 13:25:47 +0900 Subject: [PATCH 3/6] Update backup.md --- docs/backup.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/backup.md b/docs/backup.md index 61b05764a..baf4b2362 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -7,3 +7,10 @@ $ mongodump --archive=db-backup ``` Make sure **mongodb-tools** installed. + +Restore +------- + +``` shell +$ mongorestore --archive=db-backup +``` From 2b3c4cf80e2c1b0f72dae28cb88f3b0621415715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Thu, 7 Sep 2017 13:26:15 +0900 Subject: [PATCH 4/6] Update backup.md --- docs/backup.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/backup.md b/docs/backup.md index baf4b2362..9c02d9855 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -1,13 +1,15 @@ How to backup your Misskey ========================== +Make sure **mongodb-tools** installed. + +-- + In your shell: ``` shell $ mongodump --archive=db-backup ``` -Make sure **mongodb-tools** installed. - Restore ------- From ac97cb358d715a3b039ee67dd0b9826dfc43aad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Thu, 7 Sep 2017 13:26:22 +0900 Subject: [PATCH 5/6] Update backup.md --- docs/backup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/backup.md b/docs/backup.md index 9c02d9855..56054455e 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -3,7 +3,7 @@ How to backup your Misskey Make sure **mongodb-tools** installed. --- +--- In your shell: ``` shell From 8b60f7c6a26fdf1862d723164801aca3ca8f41f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Thu, 7 Sep 2017 13:28:57 +0900 Subject: [PATCH 6/6] Update backup.md --- docs/backup.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/backup.md b/docs/backup.md index 56054455e..484564b31 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -10,9 +10,13 @@ In your shell: $ mongodump --archive=db-backup ``` +For details, plese 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/).