Tag Archives: rsync

Rsync tips…

9 Oct

rsync if not installed:

    • On CentOS: yum install rsync

Commands to synchronize servers:

  • Synchronize deploy_server/ (destination) with source_server/ (source)
    • Rsync Tips
      • The leading “/” in the source directory is significant
      • Replace myuserid with your userid
    • Source Code
      • rsync -rav -e “ssh -l myuserid” /opt/myapp
    • Xhprof
      • rsync -r -a -v -e “ssh -l myuserid” /opt/xhprof/xhprof-0.9.2
    • PHP.ini
      • rsync -rav -e “ssh -l myuserid” /etc/php.ini
      ***rsync -rav -e “ssh -l myuserid” /etc/httpd/conf/httpd.conf
    • NGINX
      ***rsync -rav -e “ssh -l myuserid” /etc/nginx/nginx.conf