Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

My old system was running RHEL 5,(systemold.blah.blah), and I wanted to update the server with as little downtime as possible, so I built out a new system (systemnew.blah.blah) and put RHEL 6 on it.

Now I want to transfer the data from the old system to the new system using NFS Mount, or the IP address.

Which would be better, and how would I go about performing the data transfer? Thanks!

share|improve this question
What do you mean by "or the IP address". You want to compare NFS vs. what as an option for copying the data? –  Celada Apr 5 '12 at 23:12
add comment

1 Answer

up vote 1 down vote accepted

If you need to have one instance of the data on both machines running simultaneously, then you do need NFS (well you could use SAMBA, but that would be silly). If you just want to move the data from the old machine to the new one then rsync would be a simpler option.

For example assuming you have IP connectivity between the two machines and your old machine is and the new machine is and you have sshd running on the old machine with root login enabled and you want to transfer everything under /home on the old machine to under home on the new machine, then as root on the new machine try something like:

rsync -avz root@ /home

Note that the trailing slash after home is significant:

rsync -avz root@ /home

will create another directory /home/home on your new machine, perhaps not what you want. You could alternatively push the directories from the old machine to the new one. As root on the old machine:

rsync -avz /home/ root@

There are lots of rsync tutorials around. Search "rsync backup examples" or similar.

Regarding down time, it might be best to run the two machines simultaneously with one instance of the data mounted NFS on the new machine. Migrate one or two pilot users to the new machine to verify that they are able to work in the new environment, then migrate the rest of the users. After all users are on the new machine, from the new machine rsync the data from the NFS partition on the new machine to a locally attached partition on the new machine, unmount the NFS partition and fix the file paths. Keep the old machine running for a week or two until it is clear that everyone can work on the new machine. Then shutdown the old machine but keep it around for a month or so before you reformat it.

share|improve this answer
Wow, thanks for the extensive answer. Really helpful! –  Jeff Apr 6 '12 at 18:48
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.