From 6f835fc7f1d5c1a31dae0a7818ce17c204481c1c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 14 Feb 2013 08:55:41 +0100 Subject: Updated documentation with information about how to use mongodump. --- docs/index.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/index.rst') diff --git a/docs/index.rst b/docs/index.rst index 04ec5e38..0989689b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -173,6 +173,15 @@ If you want to backup your database: $ /etc/init.d/mongodb stop $ cp /var/lib/mongodb/pyaggr3g470r.* ~ +Alternatively you can use **mongodump**: + + $ mongodump --db pyaggr3g470r + +And **mongorestore** to restore the database: + + $ mongorestore --db pyaggr3g470r dump/pyaggr3g470r/ + +**mongorestore** only performs inserts into the existing database. Demo ---- -- cgit