1S3CL(1)               User Contributed Perl Documentation              S3CL(1)
2
3
4

NAME

6       s3cl - Command line for Amazon s3 cloud storage
7

VERSION

9       version 0.91
10

SYNOPSIS

12       s3cl command [options]
13
14         s3cl buckets
15         s3cl mkbucket --bucket some_bucket_name --jurisdiction [EU|US]
16         s3cl ls <bucket>:[prefix]
17         s3cl cp <bucket>:<key> /path/[filename]
18         s3cl sync <bucket>:[prefix] /path/
19         s3cl sync_up [--acl_short=public-read] <bucket>:[prefix] /path/
20         s3cl rm <bucket>:<key>
21
22        Options:
23          -help            brief help message
24          -man             full documentation
25
26        We take NO responsibility for the costs incured through using
27        this script.
28
29        To run this script, you need to set a pair of environment variables:
30
31        AWS_ACCESS_KEY_ID
32        AWS_ACCESS_KEY_SECRET
33

DESCRIPTION

35       This program gives a command line interface to Amazons s3 storage
36       service. It does not limit the number of requests (which may cost you
37       more money than if you did it a different way!) and each request costs
38       Money (although some costs from EC2 may be $0.0, check latest from
39       Amazon costs page) - we take NO responsibility for your bill.
40

AUTHOR

42       Leo Lapworth <llap@cpan.org>
43
45       This software is copyright (c) 2020 by Amazon Digital Services, Leon
46       Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover.
47
48       This is free software; you can redistribute it and/or modify it under
49       the same terms as the Perl 5 programming language system itself.
50

COMMANDS

52       buckets
53           s3cl buckets
54
55           List all buckets for this account.
56
57       mkbucket
58           s3cl mkbucket --bucket sombucketname [--jurisdiction [EU|US]]
59
60           Create a new bucket, optionally specifying what jurisdiction it
61           should be created in.
62
63       ls  s3cl ls <bucket>:[prefix]
64
65           List contents of a bucket, the optional prefix can be partial, in
66           which case all keys matching this as the start of the key name will
67           be returned.  If no prefix is supplied all keys of the bucket will
68           be returned.
69
70       cp  s3cl cp <bucket>:<key> target_file
71
72           s3cl cp <bucket>:<key> target_directory
73
74           Copy a single key from the bucket to the target file, or into the
75           target_directory.
76
77       sync
78           s3cl sync <bucket>:[prefix] target_dir
79
80           Downloads all files matching the prefix into a directory structure
81           replicating that of the prefix and all 'sub-directories'. It will
82           download ALL files - even if already on your local disk:
83
84           http://www.amazon.com/gp/browse.html?node=16427261
85
86             #  Data transfer "in" and "out" refers to transfer into and out
87             #  of Amazon S3.  Data transferred between Amazon EC2 and
88             #  Amazon S3, is free of charge (i.e., $0.00 per GB), except
89             #  data transferred between Amazon EC2 and Amazon S3-Europe,
90             #  which will be charged at regular rates.
91
92       sync_up
93           s3cl sync_up [--acl_short=public-read] <bucket>:[prefix] /path/
94
95           Upload all the files below /path/ to S3, with an optional prefix at
96           the start of the key name. The existing S3 files and meta data are
97           fetched from S3 and the md5 (etag) is compaired to what is on the
98           local disk, files are not upload if the content has not changed.
99
100           Use --acl_short to set access control, options from
101           Net::Amazon::S3::Bucket#set_acl this is only applied when the file
102           is uploaded.
103
104           Each files content-type is worked out using MIME::Types, if this
105           does not match 'text/plain' is used for ASCII text files, otherwise
106           a warning is issued and the file is NOT uploaded.
107
108           Currently this does NOT remove old files from S3, and if there is
109           any change to a file then the entire file will be reuploaded.
110
111       rm  s3cl rm <bucket>:<key>
112
113           Remove a key(file) from the bucket, removing a non-existent file is
114           not classed as an error. Once removed the key (file) can not be
115           restored - so use with care!
116

ABOUT

118       This module contains code modified from Amazon that contains the
119       following notice (which is also applicicable to this code):
120
121         #  This software code is made available "AS IS" without
122         #  warranties of any kind.  You may copy, display, modify and
123         #  redistribute the software code either by itself or as incorporated
124         #  into your code; provided that you do not remove any proprietary
125         #  notices.  Your use of this software code is at your own risk and
126         #  you waive any claim against Amazon Digital Services, Inc. or its
127         #  affiliates with respect to your use of this software code.
128         #  (c) 2006 Amazon Digital Services, Inc. or its affiliates.
129

AUTHOR

131       Leo Lapworth <LLAP@cuckoo.org> - Part of the HinuHinu project
132
133
134
135perl v5.32.0                      2020-08-20                           S3CL(1)
Impressum