Monday 20 February 2012

FTP ( VSFTPD ) Server Installation on Linux

Vsftpd ( Very Secure FTP Daemon ) is an FTP server for Unix like Operating systems.

Install Vsftpd

                  [root@sysadmin sysadmin]#  yum   install   vsftpd  ftp

     Now restart the service

                  [root@sysadmin sysadmin]#  /etc/init.d/vsftpd  restart

     Check vsftpd process status

                  [root@sysadmin sysadmin]#  ps  -ef  |  grep   vsftpd


                  root     24457     1  0 22:07 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
                  root     24779 21553  0 23:00 pts/0    00:00:00 grep vsftpd

     Check ftp server port status

                 [root@sysadmin ~]#  netstat   -nat  |   grep  21

                 tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      

    Set the vsftpd service to start on boot


                [root@sysadmin ~]#  chkconfig  vsftpd  on

Friday 10 February 2012

How to backup file and directory using "Rsync"


Backup Local host to Remote host 

First time, rsync replicates the whole content between the source and destination directories. Next time, rsync transfers only the changed blocks or bytes to the destination location

   [root@server ~]#   rsync   -avzr   /Datas   manivel@192.168.0.123:/home/manivel/

-z --> to enable compression
-r --> recursive
-v --> verbose
-a --> Preserves permissions, timestamp and symbolic links.

Backup Remote host to Local host

     [root@server ~]#   rsync   -avzr    manivel@192.168.0.123:/home/manivel/Datas  /test/


You want to view the rsync Progress during Transfer the files use option "-P"

     [root@server ~]#   rsync   -avzP    manivel@192.168.0.123:/home/manivel/Datas  /test/