The hcs3 command has a number of options, as follows:
Usage: hcs3 [params]
cmd:
status
useraccess <-d | -e no_of_days>
setstore aws_access_key_id aws_secret_access_key
create bucketname
delete bucketname
list [bucketname]
add [-k keyid] [-s] bucketname filename
rm bucketname filename
get [-s] bucketname filename [ofilename]
set property=value
version
-h | -?
property: tmp : [pathname, default: /tmp]To use hcs3, the first thing you need to do is to create an Amazon AWS account and provide your AWS access key id and secret to the hcs3 command. This should be called once using hcs3 setstore command. For example:
# hcs3 setstore TKIAN7ZDFBY2BU36DVPQ FZ9gsvIT1oDvuOiJrdSLRqBvmLZPcxzOWT4Qx7y5
Where:
TKIAN7ZDFBY2BU36DVPQis the AWS Access KeyIdFZ9gsvIT1oDvuOiJrdSLRqBvmLZPcxzOWT4Qx7y5is the AWS Secret Key
This call should be made on all VMs that are going to require access to the bucket. Once again note that these VMs must reside within the same Cloud VM Set and this call only needs to be made once.
The rest of the options are fairly self explanatory and involve creating or deleting buckets, listing the contents of buckets, adding or extracting encrypted files from the bucket and removing files.