Skip to content

Instantly share code, notes, and snippets.

@SwathiMystery
Last active December 16, 2015 06:08
Show Gist options
  • Save SwathiMystery/5389305 to your computer and use it in GitHub Desktop.
Save SwathiMystery/5389305 to your computer and use it in GitHub Desktop.
To clean log files and re try the uploads : cron
$ crontab -e
Add the following lines at the end and save.
# EVERY SATURDAY 8:00AM clean watcher log
0 8 * * 6 sudo sh /home/ubuntu/s3sync/clean_log.sh
# EVERYDAY at 10:00AM check failed uploads of previous day
0 10 * * * sudo sh /home/ubuntu/s3sync/re-upload.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment