Backup of the Standalone Repository is handled through standard Mongo backup procedures. This guide details the preferred way to backup the data in order to maintain portability and minimize disk usage.
You may wish to put the
mongodb\bin directory on the system path.
mongodump -d PreEmptiveRepository -c Data
dumpsubdirectory, by default. You can override this with the
dump, you should specify the new name as part of the command:
It is safe to import into a Repository that already has data, as long as the source Repository and destination Repository have the same product version. Any matching records will be skipped.
Alternatively, the MongoDB files can be directly copied to a new destination. To do so:
PreEmptiveRepository.*files from your MongoDB data directory (default
d:\data\db\) to the destination
<n>and there will also be a
Note that this method may result in a larger dataset because the raw MongoDB files include pre-allocated space and detailed index data that isn't included in the export described above.
If you wish to empty your Standalone Repository database (e.g. for testing or system administration), follow this procedure:
c:\mongodb\bin\mongo PreEmptiveRepository --eval "db.dropDatabase()".
The Standalone Repository service will automatically recreate the database, and start storing any new data it receives.