Twitter Posts from 2012-02-03

February 3rd, 2012 by Fresh
  • Even the @baconbaconsf has veggie options! Lunch @ the Sunnyvale office is always fun #

Twitter Posts from 2012-02-02

February 2nd, 2012 by Fresh

Rsync data from EC2 instance

January 31st, 2012 by Fresh

Today I had to move some data from an EC2 instance to a new system and wanted to do this via rsync. If you’re familiar with EC2, you know that there is a SSH key that is associated with each instance and you need to use this key to SSH to your EC2 instance. Passing a SSH key to your rsync command isn’t difficult -
rsync -avz -e “ssh -i key.pem” ec2-user@ipaddress:/www/* /www

But where I was having issues was with some of the remote directories not being accessible to the ec2-user. I kept receiving the following error when I was trying to pass sudo via rsync -
rsync -avz -e “ssh -i key.pem” –rsync-path=”sudo rsync” ec2-user@ipaddress:/www/* /www
sudo: sorry, you must have a tty to run sudo

The solution was to comment out ‘Defaults requiretty’ in the sudoers file. After commenting out that entry in the remote system’s sudoers file, I was able to rsync my directories without issue.

Twitter Posts from 2012-01-31

January 31st, 2012 by Fresh

Twitter Posts from 2012-01-29

January 29th, 2012 by Fresh

Twitter Posts from 2012-01-28

January 28th, 2012 by Fresh

Twitter Posts from 2012-01-27

January 27th, 2012 by Fresh

Twitter Posts from 2012-01-26

January 26th, 2012 by Fresh

Twitter Posts from 2012-01-25

January 25th, 2012 by Fresh

Twitter Posts from 2012-01-21

January 21st, 2012 by Fresh
  • Section 119, row 12 (@ Oracle Arena for Indiana Pacers vs. Golden State Warriors w/ 135 others) [pic]: http://t.co/N1cJtnTN #