-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of lnthai2002@aim.com Sent: Sunday, March 05, 2006 9:52 AM To: centos@centos.org Subject: Re: [CentOS] Moving files to new server
-----Original Message----- From: Thomas E Dukes edukes@alltel.net To: CentOS centos@centos.org Sent: Sun, 5 Mar 2006 09:34:37 -0500 Subject: [CentOS] Moving files to new server
Hello,
I am getting a new computer and am going to need to move the files from the old to the new. What is the best way to do this?
Should I install CentOS from scratch on the new computer then move the directories I need? How do I maintain permissions if this is the best way?
If you install centos on the new comp, create users on the new comp with the same user name and user ID as on the old one(you can refer to /etc/passwd for UID). Plug the HDD of the new comp to the old linux machine Create a folder, say "NewHDD" in /mnt Mount the new HDD partition (where you want your data to be copied to) to /mnt/NewHDD Use the cp command as root with --preserve[=ATTR_LIST] option to copy the files from their old(old HDD) location to new location(on the new HDD). Refer to man cp for more info about cp options. Hope it help Thai
Thanks for your reply.
I can see that this is not going to be easy any way I do it. I was also thinking of backing up the old system, install a fresh CentOS on the new, then do a restore on it. Would that work? I just want to make sure I have everthing on the new as the old.
Thanks