0

I have one Ubuntu 18.04.6 LTS EC2 Instance having Graviton2 arm64 Architecture. I have also enabled encryption on EBS volume.

I configured some cronjob bash script.

I was able to run those script manually by ./backup-script.sh command.

But when configured cron job below.

0 4 * * * /bin/sh /path/to/script/backup-script.sh

It is not able to execute.

I have other EC2 instances where cron job is running successfully but those are not graviton2 based instance neither EBS encryption enabled on them.

Julie
  • 123
  • 8
kgcwc09
  • 39
  • 6
  • 1
    What do you mean by "not able to execute"? Have you checked the logs: [logging - How to log cron jobs? - Stack Overflow](https://stackoverflow.com/questions/4811738/how-to-log-cron-jobs) – John Rotenstein Mar 24 '22 at 07:18

2 Answers2

1

Have you checked logs grep CRON /var/log/syslog? It should have worked. Verified by running simple cron job on Grv2 instance Ubuntu 18.

-1

I found the solution. Cronjob script is now working in graviton.

But any data from /var/ directory is not getting copy to s3.

It gives below error-

"The user-provided path /var/www/ does not exist."

kgcwc09
  • 39
  • 6
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 26 '22 at 15:40