"
BertieB...@gmail.com" <
BertieB...@gmail.com> writes:
>Same version of Solaris etc. Moving to new hardware.
>The application that runs on this server is easy enough to re-install but Im concerned about things like:-
>1. Users/passwords/home directories
copy the text entries out of /etc/passwd & /etc/shadow for your users,
leaving system daemon info alone.
tar czpvf /tmp/homebackup.tar.gz /home
Make sure no UID's conflict when you put things back in. There isn't
any way to generate a script to say issue 'useradd' commands.
>2. Cron jobs
You can copy the text files out of /var/spool/cron/crontabs/, but make
sure you put them back in correctly so cron knows about them.
>3. Static routes
cp /etc/defaultrouter
This basic unix stuff is *all* text files. This is how you
traditionally move an old server to a new server. It sounds like you
want more command-line based configuration of server, which is
actually what several cried about with Solaris 11 doing. I like
the more command-line method of configuration, especially with what I
note below..
>Is there ANY way to either export this sort of thing so that I can re-do on new server or is it going to be a manual process only?
One of my workflow methods is to keep an electronic notebook
(currently at evernote), of my major configs of a new server, doing up
the commands I did, or if it is a clone of the first, copy, paste into
new note, adjust IP addresses, services, etc. That I enable/startup.
If I need to remake that server, after install, I basicly copy/paste
the commands back in from my evernote notebook page for that server.
If I renumber/addusers,etc, I tend to doup notes in my evernotebook,
(copy & paste/modify), and then paste them into the server screen.
Granted, this method would be a pain to say configure Apache all the time,
so instead, change tracking happens differently for that.
But for fairly static items like admin logins, IP address info, NIC
LAGs, VLANs, etc. , LUN mounts, share mounts, etc, this works well for me.