Skip to content
Advertisement

Cronjob is not running in Linux

So I am trying to automate backups to S3 buckets through linux.

The script I am trying to run is

JavaScript

The cronjob to run that script is 44 11 * * * ./backup.sh

However whenever I try to run the backup script (by updating cronjob) it does not seem to be working at all.

Any ideas why it will not work?

Advertisement

Answer

You are creating a date stamped backup file, but attempting to copy static file name. Try changing the copy command to:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement