Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/tutorial/migrate-config-servers-with-same-hostname/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.14 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/tutorial/manage-sharded-cluster-balancer/
*Screen Resolution*: 1280 x 800
*repo*: docs
*source*: tutorial/migrate-config-servers-with-same-hostname
*Location*: http://docs.mongodb.org/manual/tutorial/migrate-config-servers-with-same-hostname/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.14 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/tutorial/manage-sharded-cluster-balancer/ *Screen Resolution*: 1280 x 800 *repo*: docs *source*: tutorial/migrate-config-servers-with-same-hostname
Description
The tutorial suggests:
rsync -az /data/configdb mongodb.config2.example.net:/data/configdb
This is wrong, because rsync will recursively copy the whole directory (not just its contents) if the trailing slash on the thing to be synced is omitted, you actually want
rsync -az /data/configdb/ mongodb.config2.example.net:/data/configdb
or
rsync -az /data/configdb mongodb.config2.example.net:/data/configdb/