Preserving/migrating system identity across upgrades

My apologies if this has been covered before and my search criteria missed it, but is there a standard process for migrating a system's identity across migration upgrades? I'm talking about the situation where I'm doing a clean install - and it's easy enough to 'cp -a' or dump/restore of /home and /var/mail - but what about the system identity (/etc/ssh/*) and the hostname and maybe /var/db/{various} other things? But it's mainly the SSH stuff that is bothersome, because if I DON'T migrate that, then I have to track down and replace all of the ~/.ssh known_hosts, authorized_keys, and so forth. I'll keep writing and maintaining my own scripts if I have to, but if there's a standard, documented procedure for doing it, I'd much rather do that.
 
Back
Top