Web Hosting Talk







View Full Version : copying user files and passwds to new server


huh
01-08-2002, 10:44 PM
Any idea how I can do that?

both are linux 6.2 and I have root access to both. Which files do I really need so the transition in seamless?

I would really appreciate any help,

thanks guys

priyadi
01-09-2002, 07:10 AM
Originally posted by huh
Any idea how I can do that?

both are linux 6.2 and I have root access to both. Which files do I really need so the transition in seamless?

I would really appreciate any help,

thanks guys

That of course depends on your configuration. But the most general way is to copy every file on old system to the new system. I have done that several times successfully. I used ssh + tar like this: (on old system with root account)

cd /
tar cfzpv - * | ssh root@newsystem "cd / ; tar xfpz -"


It it better if the new system is minimally installed otherwise there would be leftover files on the new system. Also, you need to turn off services on both systems.

(as always, there is no guarantee this will work, make sure you know what you are doing)