[DOCS-574] Tutorial: Create New Replica Set from Filesystem Snapshots Created: 03/Oct/12  Updated: 23/Oct/13  Resolved: 23/Oct/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: William Zola Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by DOCS-629 Documentation does not describe how t... Closed
Participants:
Days since reply: 10 years, 17 weeks ago

 Description   

For Replica Sets

Instructions for restoring a backup while changing the replica set name & members are as follows:

1) Restore the backup files into the new location
2) Bring up 'mongod' without the --replSet option: wait for recovery to complete
3) Shut down 'mongod'
4) At the filesystem level, completely remove the 'local' database. (If you're using 'directoryperdb', then just remove the 'local' directory)
5) Start up 'mongod' with the correct '--replSet' option
6) Perform a 'rs.initate()', followed by 'rs.add()' for each of the nodes you want to add to the set

For Standalones

The documentation covers how to perform a filesystem-level backup and restore using snapshots. However, it does not cover how to perform a filesystem backup using fsyncLock() and OS-level file copy, nor does it describe how to restore such a backup.



 Comments   
Comment by Sam Kleinman (Inactive) [ 23/Oct/13 ]

http://docs.mongodb.org/manual/tutorial/restore-replica-set-from-backup/

Generated at Thu Feb 08 07:39:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.