Skip to content

Commit

Permalink
changed S3 logging bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
shamrin committed Oct 15, 2013
1 parent 40a91b0 commit 56cbc3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/process-s3-logs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# ATTENTION! Use `make downloads`

# download
s3cmd sync --skip-existing s3://YandexMusicMacPlayer/logs/ logs/
s3cmd sync --skip-existing s3://YandexMusicMacPlayerLogs/ logs/

# "compress" and remove originals
set ALL all-(date -u '+%Y-%m-%dT%H-%M-%S').log
set LOGS (ls logs/ | grep -v '^all')
for f in $LOGS
cat logs/$f >> logs/$ALL
s3cmd del s3://YandexMusicMacPlayer/logs/$f
s3cmd del s3://YandexMusicMacPlayerLogs/$f
rm logs/$f
end

# upload
s3cmd sync logs/ s3://YandexMusicMacPlayer/logs/
s3cmd sync logs/ s3://YandexMusicMacPlayerLogs/

0 comments on commit 56cbc3f

Please sign in to comment.