Software binaries of on one server can be replaced with other server binaries

dear experts,
If the same software has been installed in two servers, if the one server software has been corrupted because of virus then can I replace the same software binaries from other server? Consider both OS of same version with rest of attributes.  

Please reply what would be the behavior in case of  
1 - Windows  windows
2  Linux  Linux  
LVL 1
mansur_mcaAsked:
Who is Participating?
 
TintinCommented:
1.  The software may rely on registry settings, so simply replacing the binaries may be problematic.

2.  If the software was installed by a package manager, then you'll lose the ability to maintain it via the package management tools.  Apart from that, if you restore all the required files, then it should operate just fine.
0
 
mansur_mcaAuthor Commented:
dear tintin.
Can you please elaborate about the second point?

We are not installed any kind of package manger. Just it simple and standard.
Ur reply >> Apart from that, if you restore all the required files, then it should operate just fine.

Means, can I conclude as below
1- Restoration of the backup which has taken on the same server can only be replaceable specific to that server and should not use this backup for other server.
Other words, Backup taken on server cant be restored on the other server.  


Any Linux experts,
Please share you views what would this scenario on the Linux platform.

0
 
TintinCommented:
Are you talking about a complete restore of the system from a backup or just certain binaries?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
mansur_mcaAuthor Commented:
not complete restoration of the system.
just i am talking about for one software for example -  SQL server
0
 
Hugh FraserConsultantCommented:
Copying an executable from one Linux system to another will work assuming both systems are from the same distribution, version, and patch levels. I'm assuming, from your question, that we're talking about replacing one file in a package that's been corrupted somehow, and other resources it depends upon are still there.

Make sure that file permissions and ownership are correct. Also, if you have SELINUX enabled, you will probably need to re-label the file once it's copied over.
0
 
mansur_mcaAuthor Commented:
from both the above answers i can understand that it is quite different for windows and Linux.
while incase of windows we just can't copy software binaries as they are tied up registry
whereas in Linux, it is possible.

if any one wants to share the views more on this?
0
 
macker-Commented:
I'm really unsure of why anyone is considering registry settings, since we're talking about a Linux system, and Linux isn't afflicted by the "registry" in this manner.

Assuming you are copying the same file, same version, etc., then yes, this will work perfectly fine.  Make sure the permissions match.  You can use 'scp -p' to preserve permissions, and tar will do the same.

If the file is part of an RPM package, you can do `rpm -qf /path/to/file` to identify which package it's in, and you can do `rpm -V packagename` to verify the files have the right permissions, that the checksum matches, etc.

If you use something like ftp to copy the file, make sure it's in binary mode, not ASCII mode.

Just do make sure the files are the exact same versions.  E.g. check other (non-modified) files, and do `md5sum filename`on each side; make sure they match.  Similarly, `cat /etc/*-release` will show the installed version and release of many Linux distributions.
0
 
TintinCommented:
We're talking about registry settings as that's what Windows uses for software installs.  If you read the question, it was related to Linux AND Windows servers.

0
 
Hugh FraserConsultantCommented:
In addition to macker's comments about using RPM to find the package that contains a given file, you can also use YUM to see what the appropriate packages are for your version of Linux using

yum provides path-to-file
0
 
mansur_mcaAuthor Commented:
dear experts,

any other want to contribute their opinions on this thread?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.