{"id":1614,"date":"2020-05-08T17:46:39","date_gmt":"2020-05-08T22:46:39","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1614"},"modified":"2020-05-08T17:47:50","modified_gmt":"2020-05-08T22:47:50","slug":"using-tar-and-aws-s3","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/using-tar-and-aws-s3\/","title":{"rendered":"Using tar and AWS S3"},"content":{"rendered":"
\n

Example of tar straight to object storage and untar back.<\/p>\n

$\u00a0tar -cP \/ARCHIVE\/temp\/ | gzip | aws s3 cp - s3:\/\/sites2-ziparchives.ls-al.com\/temp.tgz\n\n$\u00a0aws s3 ls s3:\/\/sites2-ziparchives.ls-al.com | grep temp.tgz\n2020-05-07 15:40:28    7344192 temp.tgz\n\n$\u00a0aws s3 cp s3:\/\/sites2-ziparchives.ls-al.com\/temp.tgz - | tar zxvp\ntar: Removing leading `\/' from member names\n\/ARCHIVE\/temp\/\n...\n\n$\u00a0ls ARCHIVE\/temp\/\n'March 30-April 3 Kinder Lesson Plans.pdf'   RCAT<\/code><\/pre>\n
\n

Individual Amazon S3 objects can range in size from 1 byte to 5 terabytes. The largest object that can be uploaded in a single PUT is 5 gigabytes. For objects larger than 100 megabytes, customers should consider using the Multipart Upload capability.<\/p>\n

When using "aws s3 cp" command you need to specify the --expected-size flag. <\/p>\n<\/blockquote>\n

References<\/h2>\n