Skip to content

Instantly share code, notes, and snippets.

@mmastoras
Last active August 29, 2015 14:01
Show Gist options
  • Save mmastoras/c4f15fe7e51151398866 to your computer and use it in GitHub Desktop.
Save mmastoras/c4f15fe7e51151398866 to your computer and use it in GitHub Desktop.
!#/usr/bin/env ruby
# run the rysnc and log the results to current/log/rysnc.log
system(“rsync -rave 'ssh -i /srv/www/test_node_app/current/keys/admin_sever.pem' unbuntu@<admin_server_ip>:/home/unbuntu/nodejs/Test/data/ /srv/www/test_node_app/current/views/components/ > /srv/www/test_node_app/current/log/rsync.log”)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment