[DOCS-2274] Comment on: "manual/tutorial/migrate-config-servers-with-same-hostname.txt" Created: 21/Nov/13  Updated: 03/Nov/17  Resolved: 22/Nov/13

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

Type: Improvement Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 10 years, 12 weeks, 5 days ago

 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/



 Comments   
Comment by Githook User [ 22/Nov/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2274: rsync trailing slash fix
Branch: master
https://github.com/mongodb/docs/commit/3edb7235de1df9c746ed97ed941553e42c918215

Comment by Githook User [ 22/Nov/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2274: rsync trailing slash fix
Branch: v2.4
https://github.com/mongodb/docs/commit/ee1f3bdf411a0bb04403ece06642b32b50d1d0d4

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