Current time: 02-28-2021, 08:14 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


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 - pmeenan - 08-24-2013, 08:35 AM
RE: Restoring archives from S3 - dcross-rea - 08-27-2013 05:53 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)