Closed Bug 633784 Opened 15 years ago Closed 12 years ago

Automate log backup to S3

Categories

(Camino Graveyard :: Product Site, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: alqahira, Assigned: ss)

References

()

Details

I realized the other day that not only have I not finished uploading the last 3 massive monthly logfiles from the old server, but also that I was accumulating a large collection of weekly logfiles that needed to get backed up to S3. I'm slowly working through those as I have the spare bandwidth, but it seems like a suboptimal solution. I think what we ought to do is have the server upload the completed week's file shortly after logrotate finishes rotating it (and renaming it sanely, per 621569). Specifically: 1) Fix bug 621569 2) Create a new S3 key for the server 3) Have the crontab run a small script, say, about 5 min after log rotation occurs that calls s3cmd with all the appropriate flags and uploads that day's file.
(In reply to comment #0) > 3) Have the crontab run a small script, say, about 5 min after log rotation > occurs that calls s3cmd with all the appropriate flags and uploads that day's > file. logrotate also supports running a script after it's done.
We should also have the server gzip the logs first (I think logrotate can do that?) so that 80 MB -> 6MB before upload.
Given the current state of the Camino project, we won't be fixing these website bugs. Mass changing our Product Site bugs (search on "camino-website-bugs"). RESOLVED -> WONTFIX.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.