Skip to content

Instantly share code, notes, and snippets.

@nflint
Last active January 25, 2018 16:32
Show Gist options
  • Save nflint/92b9085064fd7c45dd3470e8acf1c78f to your computer and use it in GitHub Desktop.
Save nflint/92b9085064fd7c45dd3470e8acf1c78f to your computer and use it in GitHub Desktop.
utility server cron
*/5 * * * * sh /home/ec2-user/scripts/s3-sync.sh 2>&1 | awk '{ print strftime("\%c: "), $0; fflush(); }' | tee -a /home/ec2-user/logs/s3sync-log-$(date '+\%Y-\%m-\%d').txt
18 2 * * * /usr/local/bin/s3cmd put --recursive ~/reports/*.csv s3://data-five9/archives/"$(date +"\%Y-\%m-\%d")"/ 2>&1 | awk '{ print strftime("\%c: "), $0; fflush(); }' | tee -a /home/ec2-user/logs/archive-log.txt
* 3 * * * aws s3 sync ./ s3://five9-recordings-pp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment