From 1fa3ea084355477f2872f3541caf4f9c04c69dd0 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 f33b508e4ac89bbfdc5ec4ed0aa7888477b6289a 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 61c0bc7b23fe507e5b3e9bde5c02d8c0328ddc79 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 0d43b324054bfeb61d0e317f7c247e51f44be825 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 6bcf2946c098229062482b38010691b9a5741be7 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 2aac208e675b5df5795b9128a94fb13afa8964cf 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/).