rsync command using key

rsync -avz -e ‘ssh -i ~/ppk/pk.pem’ root@[Hostname]:/source/path /dest/path

Advertisements

Install Ruby on Rails on CentOS

Install Ruby

 yum install ruby

install Ruby dependancies.

yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
yum install ruby-rdoc ruby-devel

Install Ruby Gems

yum install rubygems

Install Rails

gem update
 gem update --system

then install rails

gem install rails

for check version try

gem install rails -V