Key Points when Moving from Server A to Server B??


 
Thread Tools Search this Thread
Operating Systems Solaris Key Points when Moving from Server A to Server B??
# 1  
Old 03-08-2012
Key Points when Moving from Server A to Server B??

Hi Everyone,

I'm still learning daily about UNIX (specifically Solaris 10).

I'm tasked with moving my current application and database from Datacenter A to Datacenter B.

There will be no updates and no changes other than a new server and new location.

So far, I have Solaris installed and patched on the target to equal the patch level of the source.

My question is, what are key files or directories I should directly copy (or perhaps rsync) to do this as smooth as possible?

I will probably be frowned upon for this, but it may help explain my question a bit better.

So if this was Windows XP (for example) and I was giving someone a new pc. The OS would be installed and patched. Then the key folders I'd need to be sure to copy would be basically the user profile, favorites, mydocs, etc. I'm looking for a similar answer but in Unix terms.

I know right now the .profiles are not there and that is definatley one thing.

Can anyone maybe give me direction or a handy dandy guide "when moving to a new box...."?

Thanks for your time.
# 2  
Old 03-08-2012
Making analogies to Windows isn't frowned upon, but they don't always work, either... That's only what you'd do to move a user's documents, not a an application, from one windows machine to another. For that sort of thing under UNIX, that's all kept under /home/. It may even be possible to replicate usernames and passwords by careful tweaking of the password and shadow file. (VERY careful. One mistake can lock you out.) Or just by doing it by hand, creating new users with the same names and UID numbers they had before, matching the files transferred over. (User IDs do NOT have to exist to create files with that ID. That's handy, you can create the files first then the users later...)

If someone asked you to copy an application that'd be radically different. Which files need to be copied really depend on what files the application's using. It may have executables under /bin, libraries under /usr/lib, live database inside /var/, configuration in /etc/. Which sounds a bit disorganized but there's a method behind the madness -- these different folders are often on different partitions to allow for easy management of growth.

It could also be one big folder under /opt/. Proprietary applications like to do that since it means they don't have to bother integrating into the system. It really depends on the application and how the administrators wanted it to work.

How was this application installed in the first place? There may be records.

Last edited by Corona688; 03-08-2012 at 11:20 AM..
# 3  
Old 03-08-2012
that's a mixed bag. It was installed long ago and had updates done to it over the years.

Taking the application out of the mix, just to ensure the same users can log in with same profiles/permissions. What would I need to copy to make that at least easy?

I know each install is different, but "generally" speaking.
# 4  
Old 03-08-2012
Is the destination box at the image of the source (HW... most important is filesystem layout)? about users config the important files will be in /etc (passwd, shadow, group etc...), if you can easily recopy (why not with rsync...) /export/home the application part will be more tricky what kind of application is it? will you keep the same structure? meaning more : will you reinstall the apps? if so keeping the same structure (filesystem layout) or will you be taking this opportunity to do something better?( you should know what wasnt top in the source server you can correct now...)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Moving boot SSD from a dead server to a new server

Hi all, We have a disk array that has the boot drive on an OCZ SSD on a PCIe card. Well, the motherboard died and we got a new motherboard. We moved the controllers, NICs, etc, to the exact same slots on the new motherboard, except now it won't boot. I guess it doesn't recognize the OS on the... (1 Reply)
Discussion started by: glowe57
1 Replies

2. UNIX for Advanced & Expert Users

Public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (1 Reply)
Discussion started by: sridhardwh
1 Replies

3. Linux

Generate public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies

4. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

5. Linux

Moving Whole OS Centos Server

I currently have a web server its on a small harddrive I didn't know my site would grow so fast but now I need a bigger hard drive. Instead of adding another harddrive (host charge monthly of how many hard drives connected to server) is there anyway to just move the whole os to a bigger hard drive... (2 Replies)
Discussion started by: awww
2 Replies

6. Solaris

Solaris 8 ssh public key authentication issue - Server refused our key

Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks. ... (1 Reply)
Discussion started by: aixlover
1 Replies

7. Shell Programming and Scripting

Moving a database from one server to another

I hope I'm posting this in the correct section. I'm trying to move a database from one server to another. This is the code I'm using... tar czf - vbdatabase.sql | ssh username@full.domain.com 'cat > /home/cpanelusername/vbdatabase.tar.gz ... but all I'm getting is a ">" and then nothing... (4 Replies)
Discussion started by: Chimpie
4 Replies

8. Shell Programming and Scripting

Moving files from one server to another server every 5 min

HI All, I am trying to automate my stuff to make 'to-do-easier'. I am new to shell scripting. I need help to you regarding the below problem. I have one directory in my server, frequently files will store in that directory. I want to move that files into another server on every 5... (5 Replies)
Discussion started by: ravvamohan
5 Replies

9. AIX

moving to new server

I'm moving an application from an old RS6000 running 4.3.2 to a p5 running 5.3. Could someone point me a the direction on docs to perform such a function? Critical OS files, moving of printers and print queues especially. thanks (5 Replies)
Discussion started by: sullivjp
5 Replies

10. UNIX for Dummies Questions & Answers

Moving from one web server to another

Hi All, Thanks for taking the time to read and respond to my post. I am a Unix neophyte. I can install scripts, move around some and perform basic functions - mostly related to websites and alway with a resource guide in front of me. I currently have 12 websites hosted on a VPS and I would... (2 Replies)
Discussion started by: lcurrie
2 Replies
Login or Register to Ask a Question