Hi All,
I've just had to relocate and am using a new installation of Linux. I wasn't able to clone the previous machine's drive, so copied the directories to our server via FTP, but, I am wondering how best to approach this as I've never done this before. I'm interested in preserving all home stuff as well as apps I previously installed, but wonder whether just copying from old to new installation will work. It's the same OS and version. Will I run across lots of roblems with this? Should I just re-install everything,and save myself any issues? Curious. What are your thoughts on this? Cheers.
Mark Sargent
Mark Sargent wrote on Mon, 17 Apr 2006 19:06:03 +0900:
I've just had to relocate and am using a new installation of Linux. I wasn't able to clone the previous machine's drive, so copied the directories to our server via FTP, but, I am wondering how best to approach this as I've never done this before. I'm interested in preserving all home stuff as well as apps I previously installed, but wonder whether just copying from old to new installation will work. It's the same OS and version. Will I run across lots of roblems with this?
If you don't use SELinux just copying over should be fine, mostly. However, I wouldn't recommend it, apps sometimes spread their files a bit so you may miss one or two ... Also, your rpm/yum database is not in sync then. What I usually do (on server machines) is reinstall all software that is really needed (which usually results in less software getting installed than on the old machine ;-) and then replace their configuration files with the old ones. Home directories, MySQL databases etc. can just be "carried over". And you can carry over users by just adding them with cat or a text editor to the passwd/shadow/group/gshadow files.
Kai
Kai Schaetzl wrote:
If you don't use SELinux just copying over should be fine, mostly. However, I wouldn't recommend it, apps sometimes spread their files a bit so you may miss one or two ... Also, your rpm/yum database is not in sync then. What I usually do (on server machines) is reinstall all software that is really needed (which usually results in less software getting installed than on the old machine ;-) and then replace their configuration files with the old ones. Home directories, MySQL databases etc. can just be "carried over". And you can carry over users by just adding them with cat or a text editor to the passwd/shadow/group/gshadow files.
Hi All,
yes, what you say makes sense. I just re-installed and copied over home dir. Cheers.
Mark Sargent
*Jim Perrin* wrote on /Sun Apr 16 13:51:47 UTC 2006/
Distribution related packages don't go in /usr/local. That's generally for people building software from source. Distribution related packages live mostly in /usr. As Johnny pointed out, rpm -ql <packagename> will show you what files are in that rpm. Keep in mind that some names may not be exactly has you expect them.
Hi All,
sorry about that. Was a long day/night. All is right now. Cheers.
Mark Sargent.
Hi All,
lets change that title back. Dunno what I was thinking then. Hijacked my own thread. LOL. Cheers.
Mark Sargent