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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.

TintinCommented:
Are you talking about a complete restore of the system from a backup or just certain binaries?
Are You Protected from Q3's Internet Threats?

Every quarter, WatchGuard's Threat Lab releases a security report that analyzes the top threat trends impacting companies around the world. For Q3, we saw that 6.8% of the top 100K websites use insecure SSL protocols. Read the full report to start protecting your business today!

mansur_mcaAuthor Commented:
not complete restoration of the system.
just i am talking about for one software for example -  SQL server
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.
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?
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.
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.

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
mansur_mcaAuthor Commented:
dear experts,

any other want to contribute their opinions on this thread?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Anti-Virus Apps

From novice to tech pro — start learning today.