Restoring archives from S3
|
08-27-2013, 05:53 PM
Post: #5
|
|||
|
|||
RE: Restoring archives from S3
To archive logs to s3 I ended up basically copying some of your code and hacking it into archive.inc at line 94:
$targetDate = new DateTime('now', new DateTimeZone('GMT')); $logfileName = 'logs/' . $targetDate->format("Ymd") . '.log'; $s3->putObject($s3->inputFile($logfileName, false), $bucket, $logfileName, S3::ACL_PUBLIC_READ, $metaHeaders, $requestHeaders); I am actually using Python's boto to drive, which takes care of restoring the logs with cloudformation. I'll hopefully have this up on github in coming days. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Restoring archives from S3 - dcross-rea - 08-16-2013, 09:41 AM
RE: Restoring archives from S3 - pmeenan - 08-17-2013, 12:12 AM
RE: Restoring archives from S3 - dcross-rea - 08-19-2013, 05:07 PM
RE: Restoring archives from S3 - pmeenan - 08-24-2013, 08:35 AM
RE: Restoring archives from S3 - dcross-rea - 08-27-2013 05:53 PM
RE: Restoring archives from S3 - phedenskog - 08-25-2015, 07:45 AM
|
User(s) browsing this thread: 1 Guest(s)