Amazon EC2 EBS automatic backup one-liner works manually but not from cron
- by dan
I am trying to implement an automatic backup system for my EBS on Amazon AWS.
When I run this command as ec2-user:
/opt/aws/bin/ec2-create-snapshot --region us-east-1 -K /home/ec2-user/pk.pem -C /home/ec2-user/cert.pem -d "vol-******** snapshot" vol-********
everything works fine.
But if I add this line into /etc/crontab and restart the crond…