-
Website
http://blog.awarelabs.com -
Original page
http://blog.awarelabs.com/?p=83 -
Subscribe
All Comments -
Community
-
Top Commenters
-
williyamb
1 comment · 1 points
-
Malcolm Tredinnick
2 comments · 1 points
-
Seo Company
1 comment · 1 points
-
boston movers
1 comment · 1 points
-
rasiel
1 comment · 1 points
-
-
Popular Threads
Why are you not simply using a shell script if you just want to run a few shell commands? I think in this case it would make the code even simpler.
access_key = '8459945JFG8FDGJ38233'
secret_key = 'h9rtnretlfkgdnfgg843twlejrktjwlktwekl'
Your Arkayne "Contact us" form doesn't work, showing strange {message}} message.
"Contact us" form on Aware Labs doesn't work too, showing "SMTPDataError at /contact/
(503, '5.0.0 Need RCPT (recipient)')".
I believe that you want to want to listen to your users/clients but something went wrong.
WBR, Nick
What I meant is that when you do deploy this script on to your server for real, you will have to put in real AWS codes into this script for it to work. At that point, a potential server compromise leaves a hacker with plain access to these codes and hence to your AWS account.
Very valid point, I'm not sure its avoidable though. To back up to S3 the script needs the codes. Even if you do the backup manually your history log will show the keys in the command. I guess you could clear your history but does anyone do that?
Plus if your server is compromised, the hacker could simply wait until you back up again then cache the commands and codes. So Im not sure this problem is solvable, if the server is compromised then there is no way to avoid risk.
You're right that a hacker could wait for you to use your secret keys/certs and grab them at that time. It's still a bit more reassuring not to have to keep your secret keys right on the server all the time.
missing a line break on that first line.. import should be on its own line... and saturday is misspelled.
------
rm -f /mnt/saturday*
/usr/local/bin/ec2-bundle-vol .....
Copying / into the image file /mnt/saturday...
Excluding:
/sys
/proc
/proc/sys/fs/binfmt_misc
/dev
/media
/mnt
/proc
/sys
/mnt/saturday
/mnt/img-mnt
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00216 seconds, 485 MB/s
mke2fs 1.39 (29-May-2006)
ERROR: execution failed: "rsync -rlpgoD -t -r -S -l --exclude /sys --exclude /proc
--exclude /proc/sys/fs/binfmt_misc --exclude /dev --exclude /media --exclude /mnt
--exclude /proc --exclude /sys --exclude /mnt/saturday --exclude /mnt/img-mnt -X
/* /mnt/img-mnt 2>&1 > /dev/null"
/usr/local/bin/ec2-upload-bundle ....
--manifest has invalid value '/mnt/saturday.manifest.xml': File does not exist or
is not a file.
Try 'ec2-upload-bundle --help'
----------
I've removed some of the command params, but you should get the idea. It seems to me that for some reason the manifest.xml file isn't being generated prior to trying to upload it to S3. Any thoughts?
Thanks in advance for any help!
I am personally keeping all data, logs and application config files on an EBS Volume and only run this bash script when I make changes to the OS. This way I plan to make backups with snapshots of the volume and/or copies of the data to S3.
Does this sound reasonable?