I have a script which downloads a file from my s3 bucket, overwriting the existing file. The intention is to run the script once a day so that the file is constantly overwritten and updated.
Here's the command, on crontab:
03 23 * * * /Library/Frameworks/Python.framework/Versions/3.7/bin/aws s3 cp s3://sfbucket.bucket/sf_events.json /Users/Documents/TownSounds_Javascript/data/sf_events.json >> /Users/Documents/logs3.txt 2>&1
Really, I only need it to run once every day. However, the script is failing to replace the existing file - it's not overwriting it. The only way I can get it to overwrite the file is if I change the crontab to: * * * * *
The output logs appear normal, and appears as if the command is being executed normally.
My question is: why would the command not work with this:
03 23 * * *
But * * * * *
works - (only once, the file is replaced, but then fails to be updated still).
Thanks.