Last active
January 25, 2018 16:32
-
-
Save nflint/92b9085064fd7c45dd3470e8acf1c78f to your computer and use it in GitHub Desktop.
utility server cron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/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