ec2-automate-backup supports -c cron-primer mode for loading environment configuration.

This commit is contained in:
Colin Johnson
2012-11-12 03:12:59 +00:00
parent 18a97a7714
commit b122dcfff8
3 changed files with 26 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
#EC2_HOME required for EC2 API Tools
export EC2_HOME=/opt/aws/apitools/ec2
#JAVA_HOME required for EC2 API Tools
export JAVA_HOME=/usr/lib/jvm/jre
#export PATH=/bin is required for cut, date, grep
#export PATH=/opt/aws/bin/ is required for EC2 API Tools
#typical system path PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin
export PATH=/bin:/opt/aws/bin/
export AWS_ACCESS_KEY=<your_access_key>
export AWS_SECRET_KEY=<your_secret_key>