s3-archive
v0.0.1
Published
Takes source files from S3 and uploads a zip or tar of those files to S3
Downloads
28
Maintainers
Readme
S3 Archive
Takes source files from S3 and uploads a zip or tar of those files to S3.
Example Usage:
const AWS = require("aws-sdk");
const s3Archive = require("s3-archive");
const s3 = new AWS.S3();
const files = [
{ Bucket: "source-bucket", Key: "index.html" },
{ Bucket: "source-bucket", Key: "js/main.js" },
{ Bucket: "source-bucket", Key: "css/main.css" },
{ Bucket: "source-bucket", Key: "img/logo.png" }
];
s3Archive(s3, files, "destination-bucket", "archive.zip");