Hi,
I am having issues running ec2-automate-backup.sh as cron Job on Ubuntu 14 server. When I run a command
/home/backup-agent/scripts/ec2-automate-backup.sh -s tag -t Backup,Values=true -k 31 -r ap-southeast-2 on terminal it works fine and I can see it also creates snapshots.
The issue is when I try run this as a cron job it does not work. This is my cron command and I am trying to run it on 11pm every day. I have used crontab -e to schedule the cron job.
00 23 * * * /home/backup-agent/scripts/ec2-automate-backup.sh -s tag -t Backup,Values=true -k 31 -r ap-southeast-2
Please let me know what is going on or any steps I am missing i.e. cron-primer.sh?
Kind regards,
Javed Gardezi