From 51fabdfbff5dcccfee4df5dd691257c8c19d2962 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 20 Nov 2008 12:11:41 -0800 Subject: [PATCH] Delete contrib/cumulus-store-s3. This has been replaced by cumulus-store, and the main cumulus executable now uses a different interface so cumulus-store-s3 won't work any longer. --- contrib/cumulus-store-s3 | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 contrib/cumulus-store-s3 diff --git a/contrib/cumulus-store-s3 b/contrib/cumulus-store-s3 deleted file mode 100755 index 340253a..0000000 --- a/contrib/cumulus-store-s3 +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/python -# -# Storage hook for writing LBS backups directly to Amazon's Simple Storage -# Service (S3). -# -# Command-line arguments: -# -# Most options are controlled by environment variables: -# AWS_ACCESS_KEY_ID Amazon Web Services credentials -# AWS_SECRET_ACCESS_KEY " " -# LBS_S3_BUCKET S3 bucket in which data should be stored -# LBS_S3_PREFIX Path prefix to add to pathnames (include trailing -# slash) -# -# This script depends upon the boto Python library for interacting with Amazon -# S3. - -import os, sys -import boto -from boto.s3.bucket import Bucket -from boto.s3.key import Key - -prefix = os.environ.get('LBS_S3_PREFIX', "") -bucket_name = os.environ['LBS_S3_BUCKET'] -(local_path, file_type, remote_path) = sys.argv[1:4] - -conn = boto.connect_s3() -bucket = Bucket(conn, bucket_name) -k = Key(bucket) -k.key = prefix + file_type + "/" + remote_path -k.set_contents_from_filename(local_path) -- 2.20.1