rsync is a program that behaves in much the same way that rcp does, but has many more options and uses the rsync remote-update protocol to greatly speed up file transfers when the destination file already exists.
The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report that accompanies this package.
Debian or Ubuntu Linux
apt-get install rsync
sudo apt-get install rsync
Red Hat Enterprise Linux (RHEL)
CentOS/Fedora Core Linux
yum install rsync
Now a day there is many popular free web application such as WordPress, Joomla, Oscommerce, and etc. Because lots of people is using those free opensource, hence the percentage your site is injected by malware is high.
But how you check if your site is infected by virus?
There do have free web based site scanner on web, here is some of it.
(1) Sucuri Site Check
(3) Virus Total
Beside use command to check the version, you can use the php script to check the php version. Why that so? So application do need to verify by php first before allow you to install the apps.
$ar = split("[/ ]",$_SERVER['SERVER_SOFTWARE']);
$Apache_Version = $ar[$i];
$PHP_Version = $ar[$i];
$MOD_SSL_Version = $ar[$i];
$OPENSSL_Version = $ar[$i];
Echo "Apache Version: $Apache_Version<br>\n";
Echo "PHP Version: $PHP_Version<br>\n";
Echo "mod_ssl Version: $MOD_SSL_Version<br>\n";
Echo "OpenSSL Version: $OPENSSL_Version<br>\n";