Archive for July, 2014

Syslog-ng ,quick setup for Log collection

Posted: 3rd July 2014 by admin in all
Tags: , ,

Hi all,We will install Syslog-ng server on Ubuntu 12.04 machine and configure it for remote log collect: Install Syslog-ng : apt-get install syslog-ng Configure the syslog-ng.conf file for collecting and creating log files ​nano  /etc/syslog-ng/syslog-ng.conf                 #######Open default configuration file  Syslog ConFiguration file: Restart the Syslog-ng and check if it open listenner on port 514 /etc/init.d/syslog-ng restart […]

Bash File Testing

Posted: 2nd July 2014 by admin in Trick
Tags: , ,

Bash File Testing: -b filename – Block special file -c filename – Special character file -d directoryname – Check for directory existence -e filename – Check for file existence -f filename – Check for regular file existence not a directory -G filename – Check if file exists and is owned by effective group ID. -g filename – true if file exists and […]

Backup Script,Bash

Posted: 1st July 2014 by admin in code
Tags: , , , , ,

Here is bash script that do a backup of source folders(Can be multiply : ""/root" "/var"") Backups are store for 7 days, 2 weeks backup and 2 month backup and rotated as well. Change it upgrade it use it =)