20+ Switches of rsync in Unix/Linux

* Switches of rsync: 1) -v, –verbose Increase verbosity. 2) -r, –recursive Recurse into directories. 3) -l, –links Copy symlinks as symlinks. 4) -p, –perms Preserve permissions. 5) -t, –times Preserve modification times. 6) -g, –group Preserve group. 7) -o, –owner preserve owner (super-user only) 8) -D Same as –devices –specials. –devices : preserve device files […]

Command for Rsync over SSH – Unix/Linux

Command for Rsync over SSH   Common Syntax for Rsync: # rsync [options] Source Destinations. Set up a secure backup with rsync + SSH of one system to the other. backup.example.com# rsync -avz –numeric-ids –delete root@myserver.example.com:/path/ /backup/myserver/ To do the backup, you have to be root on the remote server, because some files are only root […]

How to install mod_evasive in cPanel server?

install mod_evasive in cPanel server Installation steps for Apache 2.2 Download the mod_evasive source file to the server #cd /usr/local/src #wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz Extract the zip file that we downloaded to the server #tar -xvzf mod_evasive_1.10.1.tar.gz #cd mod_evasive To load dynamic modules to Apache, use apxs #/usr/local/apache/bin/apxs -cia mod_evasive20.c This will create an entry in the […]